Hi,
I am trying to create a js file with c2 with some lines inside based on SVG.
This is the code:
(ns arp-charts.cljs.charts
(:use-macros [c2.util :only [bind!]])
(:require [singult.core :as singult]
[c2.dom :as dom]
[reflex.core :as reflex]))
(bind! "#bars"
[:svg [:style {:type "text/css"} (str "<![CDATA[" css "]]>")]
[:g.plot
[:g.coordinate-axes
[:line {:x1 20 :y1 50 :x2 20 :y2 300}]
[:line {:x1 20 :y1 300 :x2 620 :y2 300}]
]
]])
Now, when i generate a js file with lein cljsbuild auto and open a html page with the js loaded i get this error:
Error: Cannot merge $e into node of different type
Any Ideas what is wrong there?
Best Regards,
Sven