Settings

Theme

Show HN: Dynamic Charts library built upon D3

12 points by thound 13 years ago · 3 comments · 2 min read

Reader

I made a little library to make it easier having dinamically filled charts. The goal of the library is making your life easier; it is not too elaborate from a graphic point of view, but every chart Object can be easily extended trough inheritance. There are four kind of charts at the moment: 3 histogram charts and a wheel shaped one.

All the charts objects support multidimensional data, have plenty of built-in methods to change style-related details, such as colors, as well as modifying preferences about labels. legend, title, and deciding whether each subcomponent of a multidimensional dataset should be scaled according to global or local maximum.

For 3 out of 4 charts requires that the maximum amount of values that can be represented at the same time is fixed on construction; it is therefore possible to set how much of the oldest data should be discarded when the chart is full, in order to draw new data (or, by default, the chart will discard all of the new data passed)

Finally, the function used to validate data can be set at run time, allowing to make the chart able to accept JSON data or any other format.

Please feel free to take a look at the showcase

http://bl.ocks.org/4340039 http://bl.ocks.org/4339162

and possibly to fork it on github:

https://github.com/mlarocca/Dynamic-Graphs

JSDocs coming right away.

thoundOP 13 years ago

Thanks for correcting the link.

Documentation is now ready (thanks to YUIDoc http://yui.github.com/yuidoc/)

You can find it here: http://mlarocca.github.com/Dynamic-Charts

pella 13 years ago

correct link: https://github.com/mlarocca/Dynamic-Charts

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection