Home › forums › Chart Support › Performance-Problem with CanvasJS
Tagged: reducing data
We need to plot a lot of data in a Canvas-JS Linechart. So my solution so far was to write a algorithm that reduces the shown points…
That had a few nasty side effects like really ugly curves sometimes…
So I found a library (simplify-js: https://mourner.github.io/simplify-js/) that would take care of that in a proven way.
What would be the easiest possibility to use that library with canvas.js?
We are looking into your query and will get back to you at the earliest.
MAybe a few more inputs from my side:
Right now I use the library to reduze the data points before “feeding” it to the linechart. I save the full datapoints in another structure. When the user presses freeze, I replace the reduced datapoints with the full datapoints…
It would be nice, if I could activate this for each line separately and the linechart would take care of this for me…
Thx for your time…
Please take a look at this JSFiddle for integrating CanvasJS with simplify.js.
You must be logged in to reply to this topic.