We've been experimenting with ClojureScript and D3, a JavaScript DOM-
manipulation with an emphasis on data visualization, and we just put
our work on the Github:
https://github.com/lynaghk/cljs-d3/
Basically, this is a façade that proxies the native D3 JavaScript
functions so that you don't have to constantly use dot and dot-dot
interop macros.
We've also added some syntactic sugar to D3 so you can pass maps to
(attr) and (style);
(-> selection
(attr {:width 10 :height 20
:color #(if (< % 1) "red" "blue")}))
and other functions get a more Clojure-esque api:
(scales/linear :domain [0 1] :range [0 Width])
The official site is here:
http://keminglabs/cljs-d3/
We're switching to ClojureScript from CoffeeScript/JS for all of our
new interface/dataviz work, so we'll be adding a lot to this project
over the next few months.
We've submitted a talk proposal for the Conj:
http://keminglabs/d3.clj/
but in the mean time we are happy to chat with anyone about our
experiences wrapping a JS library for ClojureScript and data
visualization with Clojure in general.
best,
Kevin
Keming Labs
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en