We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Sorting in Pie

Hi,

how can I stop the chart control from sorting the data along the size of the pie pieces?
For example if I have 4 pieces named "Very good", "good", "ok", "bad" and the "good" pie is very small it is not displayed between "Very good" and "ok" but instead moves to the side with the small pieces.

Thank you

1 Reply

SD Sivakumar D Syncfusion Team June 25, 2012 05:18 AM UTC

Hi Matthias,

Thanks for using Syncfusion Products.

We suggest to use “OptimizePiePointPositions”  property of chart series to modify the pie slice order. It specifies if the data points with smaller values are grouped together and ordered. By default, they are ordered in the order in which the points are added to the series. Please refer below code snippet.

[C#]
<code>
series1.OptimizePiePointPositions = false;
</code>

For more information about OptimizePiePointPositions ,Please refer our online documentation link below.

http://help.syncfusion.com/UG/User%20Interface/ASP.NET/Chart/Documents/45149optimizepiepointpositions.htm

For your convenience, we have created sample and the same can be downloaded from the following link.

http://www.syncfusion.com/downloads/Support/DirectTrac/95875/F104129326799840.zip


Please let me know if you have any other questions or concerns.

Regards,
Siva


Loader.
Live Chat Icon For mobile
Up arrow icon