how much data can charts js handle

梦想的初衷 提交于 2020-01-13 10:50:58

问题


For my application, I am making a get request of thousands of data points. When I use charts js to display the data, it takes a long time to render, and I experience lag. I also noticed that the x-axis labels for each data point don't appear properly, so they had to be omitted

I like the sleek design and ui of the graphs, but cannot get it to work well for my use case. Is charts js not meant to be used with large data sets? Is there another library like charts js that can handle large data sets? While also being free?


回答1:


if you want to handle big data you should use Highcharts it easy can handle some million data without a big delay




回答2:


Another option to consider is ZingChart. It is free as a branded version, but renders large amounts of data quickly while still maintaining flexibility in customization. If you are looking for a sleek design and UI, ZingChart allows the user to change just about every size, shape, and color to match your taste.

Full disclosure, I am on the ZingChart team. However, we developed a speed test tool that I think you will find helpful in testing your number of data points, regardless of which library you end up selecting. Note that some of these libraries will use up all your browser memory, so proceed with caution in some cases.




回答3:


I had the same problem, Charts js seems to be unable to handle large data sets. The best alternative I've found is https://github.com/danvk/dygraphs . Also you could try http://canvasjs.com/ although it is comercial.




回答4:


Have a look at LightningChart JS... It is made with WebGL. It can render

  • 1 million data points in ~80 ms in line chart
  • 10 million data points in ~800 ms

that is for static data. Those I got from my PC (AMD Ryzen, NVidia GTX1060)

But for scrolling streaming data, the performance is yet more impressive. Dozens of millions of points, with some configurations with Firefox browser, over 100 million points.

There is a chart performance tester application

I work with the team making this chart...



来源:https://stackoverflow.com/questions/31812757/how-much-data-can-charts-js-handle

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