javascript graphing library [closed]

老子叫甜甜 提交于 2019-12-04 17:40:27

问题


I'm looking for a nice graphing library for JavaScript that can handle the following types of graphs:

  • Line Graphs
  • Histograms
  • Scatterplots
  • Motion Charts

I've tried Google's Chart Tools but they don't seem to have a nice histogram chart (nor can I get their motion chart to work properly, even served off my Apache web server).

I'm hoping that there's a decent library out there that can support all of these, however if I must, I may include 2 different libraries (looking at Google Chart Tools, gRafael, flotr, and rgraph right now - none of which seem to include ALL of the requirements I have).


回答1:


I'm surprised no one has mentioned JQPlot yet. I'm not entirely sure it will do everything you need, but it's a very, very capable library. It's in jQuery, just to note.

Demos of JQPlot here

JQPlot can fit all your needs, it seems:

  • Line Graphs JQPlot supports these just fine, as you'd expect
  • Histograms Histograms are just bar charts, so that should be ok. A colour histogram would just consist of 1px wide bars
  • Scatterplots Scatter plots are also fine
  • Motion Charts I think you mean bubble plots, which JQPlot also does



回答2:


graphael supports a number of graph types.

https://stackoverflow.com/questions/1571016/raphael-js-tutorial has some helpful tips.




回答3:


I ran across this question while researching the same topic. Since I wasn't entirely happy with any of the options out there, I created i3d3, a fairly simple library based on D3.js which may meet your needs. So far it is working well for our project (monitoring system for a high-energy particle astrophysics project), and at least one other project in the wild.



来源:https://stackoverflow.com/questions/6766547/javascript-graphing-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!