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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PieSeries: it is possible to order the elements in the legend by percentage?

Thread ID:





124014 May 9,2016 08:54 AM UTC May 10,2016 12:39 PM UTC Xamarin.Forms 4
Tags: SfChart
Paco Gómez
Asked On May 9, 2016 08:54 AM UTC

I see the elements in the Legend are ordered by theXBindingPath, would it be possible to order the Legend elements by the YBindingPath?


Gobi M [Syncfusion]
Replied On May 10, 2016 09:25 AM UTC

Hi Francisco,

Thanks for contacting Syncfusion support.

Chart Legend items are dependent to chart series data source. The Legend items are displayed in chart in the order of data points added. Currently there is no properties exist to reorder legend items or to display items based on YBindingPath. Still we can reorder the legend items, only by reordering the chart data point but it will also change the series segment order.

Please let us know for any concerns.

Gobi M

Gobi M [Syncfusion]
Replied On May 10, 2016 10:17 AM UTC

Hi Francisco, 
We have prepared a sample which uses the reordered data points with respect to YBindingPath value. It can be downloaded in below link. 
Please let us know if you need any further assistance. 
Gobi M 

Paco Gómez
Replied On May 10, 2016 10:58 AM UTC

Hello Gobi.

Are you sure you send me the correct example?

I deploy in the iPhone emulator but I don't see the order.

Anyway, I will do the order from the ViewModel in the data rows, but it would be fine if this flag is available.

Gobi M [Syncfusion]
Replied On May 10, 2016 12:39 PM UTC

Hi Francisco, 
We have tested the attached sample, the reordering legend items are working fine. We have also added screenshot for the same here. Could you please let us know the more detail if it does not meet your requirement?  
Gobi M 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon