Home forums Using CanvasJS Don't display all data points when dataset is big

This topic contains 2 replies, has 2 voices, and was last updated by  Sheldon Ju 4 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24630

    Dear canvasJS team
    I’m trying to plot a big dataset(400k data points and 10 lines). The graph becomes very slow and tooltips don’t work consistently. Is there a way to hide some of the data points while zoomed out, but display them when zoomed in?
    Thank you

    #24640

    @sheldon-ju,

    You can achieve the above requirement with the help of rangeChanged event and by performing data-filtering i.e. add dataPoints on zooming-in and remove dataPoints on zoom out. Please take a look at this JSFiddle for the same.

    ____
    Shashi Ranjan
    Team CanvasJS

    #24644

    Thank you Shashi, this is very useful.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.