Home › forums › Using CanvasJS › Pie chart performance
Tagged: pie performance
This topic contains 7 replies, has 2 voices, and was last updated by Shashi Ranjan 9 months ago.
I have pie chart with 3000 points
rendering time is 50 sec
How can I reduce rendering time ?
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.
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.
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 ?
Can you please brief me more about what do you mean by “show labels only for Top N datapoints”?
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 ?
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.
You must be logged in to reply to this topic.