Home Forums Chart Support Pie chart – slice/sector

Pie chart – slice/sector

Viewing 4 posts - 1 through 4 (of 4 total)
  • #26186

    Is it possible to arrange the pie slices/sectors from largest to smallest pie slice in clockwise order? based on ‘Y’
    value?

    Thanks in Advance.

    #26188

    @juliecooling1,

    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.


    Vishwas R
    Team CanvasJS

    #26213

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

    #26217

    @juliecooling1,

    Glad that helped you out :)


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.