Hi,
I am trying to use google charts from clojurescript, however cant get it
working. I have included both the js code from google's site and my
clojurescript conversion. Any help in figuring out the problem will be
appreciated.
Thanks,
Murtaza
JS Code -
script type=text/javascript
Try this:
(defn add-rows []
(let [data (js/google.visualization.DataTable.)]
(.addColumn data string Topping)
(.addColumn data number slices)
(.addRows data (clj-js [[Mushrooms 3] [Onions 1] [Olives 1]]))
data))
(defn chart-options []
(clj-js {:title How much Pizza i ate
Hey Mark,
It worked ! Thank for your help.
Murtaza
On Saturday, April 28, 2012 5:06:49 AM UTC+5:30, Mark Rathwell wrote:
Try this:
(defn add-rows []
(let [data (js/google.visualization.DataTable.)]
(.addColumn data string Topping)
(.addColumn data number slices)