Liking cljdoc? Tell your friends :D

strokes

Now, the world don't move to the beat of just one drum,
What might be right for you, may not be right for some.

strokes is an interop library for using d3.js from clojurescript

D3 is a wonderfully functional library and seems well suited for playing nice with clojurescript, provided the usual data wrangling issues can be made to go away. This is achieved in strokes via JavaScript metaprogramming that provides a language polyfill for the clojure container classes so that they can be accessed natively by D3. This interop functionality is provided by the separate and growing mrhyde library.

This repo also currently includes a number of standalone examples in the examples subdirectory. The venn-simple example is probably the easiest 'hello-world' program to use as template to start hacking your own projects.

Online examples:

Getting Started

To use strokes from your ClojureScript project, add this dependency to your project.clj:

[hexawise/strokes "0.6.0-alpha1"]

Or to get started in this repo, try venn-simple or any of the other examples. Simply

cd examples/venn-simple
lein cljsbuild auto

Then open public/hello.html to see three circles in your web browser. Then to get hacking, you can then edit the venn-simple source file, save, and refresh your browser to see the changes.

Release

Release to Clojars with:

lein deploy clojars

Can you improve this documentation? These fine people already did:
Tom White, John Jacobsen, Sean Johnson & Seyi Ogunyemi
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close