4 ms·
Nice use of Chart.js! If you run into performance limits with v2, I would recommend trying out v3 (we're close to a 2nd alpha release) as it has a lot better pe
by etimberg 6y ago
Nice use of Chart.js! If you run into performance limits with v2, I would recommend trying out v3 (we're close to a 2nd alpha release) as it has a lot better performance.
Docs on the latest dev code: https://www.chartjs.org/docs/master/ https://www.chartjs.org/docs/master/
- KitDuncan 6y agoI tried to render a couple hundred thousand datapoints with Chart.js and it froze my browser. Will v3 make a meaningful difference? Don't get me wrong, I love chart.js. It's a great library.
- etimberg 6y agoThere's a set of benchmarks with ~166k points. Chart.js v3 is listed as "Chart.js-next". https://leeoniya.github.io/uPlot/#performance https://leeoniya.github.io/uPlot/#performance It should also be possible to render the chart in a WebWorker via the OffscreenCanvas API. To be honest though, the data should be decimated before being sent to the chart. Some notes on it https://www.chartjs.org/docs/master/general/performance#data-decimation https://www.chartjs.org/docs/master/general/performance#data...