javascript NVD3.js(可重用图表库)的替代品?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17602664/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
An alternative to NVD3.js (reusable charts library)?
提问by GeReV
I've been looking recently at solution for creating charts for a web page.
我最近一直在寻找为网页创建图表的解决方案。
After a bad experience with (an outdated version) of Highcharts, I tried to give a chance for D3.js, which I find very handy.
在对 Highcharts(一个过时的版本)的糟糕体验之后,我尝试给D3.js一个机会,我发现它非常方便。
Since I'm on a tight schedule for this project, I'm trying to find a library for reusable charts that sits on top of D3.
So far the only candidates I found are Miso Project's d3.chartand NVD3.js.
由于我对这个项目的日程安排很紧,我试图找到一个位于 D3 之上的可重用图表库。
到目前为止,我发现的唯一候选对象是 Miso Project 的d3.chart和NVD3.js。
The problems are that d3.chartis only a tiny framework for making reusable charts, while NVD3is very extensive, but not very flexible and very undocumented.
问题是d3.chart只是一个用于制作可重用图表的小框架,而NVD3非常广泛,但不是很灵活,而且没有文档记录。
Is there an alternative to those libraries (or should I start writing one)?
这些库有没有替代品(或者我应该开始写一个)吗?
回答by meetamit
Did you check out Vega?
你检查了织女星吗?
I do agree with ckersch's comment above that, in the long run, writing your own visualization from the ground up with d3 is usually appropriate... and fun. (Of course this also depends on what you're actually trying to accomplish.)
我确实同意 ckersch 上面的评论,从长远来看,使用 d3 从头开始编写自己的可视化通常是合适的……而且很有趣。(当然,这也取决于您实际尝试完成的工作。)
Personally, I would not recommend writing your own framework because, chances are, it won't be reusable beyond your current project.
就我个人而言,我不建议您编写自己的框架,因为它可能无法在您当前的项目之外重用。