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 ?
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.