TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Dynamic Charts library built upon D3

12 点作者 thound超过 12 年前
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 条评论

thound超过 12 年前
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 未加载
pella超过 12 年前
correct link: <a href="https://github.com/mlarocca/Dynamic-Charts" rel="nofollow">https://github.com/mlarocca/Dynamic-Charts</a>