Home Forums Chart Support Pie chart performance

Pie chart performance

Viewing 8 posts - 1 through 8 (of 8 total)
  • #24265

    Hello
    I have pie chart with 3000 points
    rendering time is 50 sec

    How can I reduce rendering time ?

    #24283

    @jamesrus52,

    We have tried the condition given above and its rendering within a few seconds at our end. Can you please create a JSFiddle reproducing the issue you’re facing so that we can look into the code, understand it better and help you out.

    ____
    Shashi Ranjan
    Team CanvasJS

    #24293
    #24306

    @jamesrus52,

    We looked into the JSFiddle provided by you, it’s taking time not due to dataPoints but due to rearrangement of labels in a pie chart(labels are rearranged so that they don’t overlap with each other). Once you remove labels its rendering within a few seconds.

    ____
    Shashi Ranjan
    Team CanvasJS

    #24316

    Thank you, without labels chart is rendering faster,
    but chart is not so pretty without it now.
    May be it possible to show labels only for Top N datapoints ?

    #24322

    @jamesrus52,

    Can you please brief me more about what do you mean by “show labels only for Top N datapoints”?
    ____
    Shashi Ranjan
    Team CanvasJS

    #24336

    If I understood right, the problem is that too many labels, if we set for example show only 10 labels for first 10 datapoints or for 10 biggest datapoints in array, may be it solve the problem ?

    #24353

    @jamesrus52,

    You can achieve the above requirement by removing the label from dataPoints which fall below a threshold value before rendering the chart as shown in this JSFiddle.

    ____
    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.