TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Dynamic Charts library built upon D3

12 pointsby thoundover 12 years ago
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.<p>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.<p>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)<p>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.<p>Please feel free to take a look at the showcase<p>http://bl.ocks.org/4340039 http://bl.ocks.org/4339162<p>and possibly to fork it on github:<p>https://github.com/mlarocca/Dynamic-Graphs<p>JSDocs coming right away.

2 comments

thoundover 12 years ago
Thanks for correcting the link.<p>Documentation is now ready (thanks to YUIDoc <a href="http://yui.github.com/yuidoc/" rel="nofollow">http://yui.github.com/yuidoc/</a>)<p>You can find it here: <a href="http://mlarocca.github.com/Dynamic-Charts" rel="nofollow">http://mlarocca.github.com/Dynamic-Charts</a>
评论 #5010527 未加载
pellaover 12 years ago
correct link: <a href="https://github.com/mlarocca/Dynamic-Charts" rel="nofollow">https://github.com/mlarocca/Dynamic-Charts</a>