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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:





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

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 05:25 AM

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 06:17 AM

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 06:58 AM

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 08:39 AM

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.

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.