Home › forums › Using CanvasJS › Pie chart – slice/sector
Is it possible to arrange the pie slices/sectors from largest to smallest pie slice in clockwise order? based on ‘Y’
Thanks in Advance.
Yes, it’s possible to arrange slices of pie from smallest to largest by sorting dataPoints in ascending order before rendering the chart. Please take a look at this JSFiddle.
Thank you for your help.
My requirement was to arrange pie slices from largest to smallest, so achieved it by sorting dataPoints in
descending order and from clockwise direction using startAngle attribute.
Glad that helped you out :)
You must be logged in to reply to this topic.