|Author:||Ralph Bean <firstname.lastname@example.org>|
Peep the live demonstration.
d3 allows you to bind arbitrary data to a Document Object Model (DOM), and then apply data-driven transformations to the document. As a trivial example, you can use d3 to generate a basic HTML table from an array of numbers. Or, use the same data to create an interactive SVG bar chart with smooth transitions and interaction. It is the successor of protovis.
The best way to scope out tw2.d3 is to load its widgets in the tw2.devtools WidgetBrowser. To see the source code that configures them, check out tw2.d3/tw2/d3/samples.py
To give it a try you'll need git, python, and virtualenvwrapper. Run:
$ git clone git://github.com/toscawidgets/tw2.d3.git $ cd tw2.d3 $ mkvirtualenv tw2.d3 (tw2.d3) $ pip install tw2.devtools (tw2.d3) $ python setup.py develop (tw2.d3) $ paster tw2.browser
...and browse to http://localhost:8000/ to check it out.