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.
Syncfusion Feedback

Percentage label for PieSeries in SeriesCollection

Thread ID:

Created:

Updated:

Platform:

Replies:

117971 Jan 14,2015 09:17 PM UTC Jan 19,2015 06:34 AM UTC WPF 3
loading
Tags: SfChart
Dario Quispe
Asked On January 14, 2015 09:17 PM UTC

Hi,

I would like to show values of PieSeries in percentage.
I created a DataTemplate for label template ChartAdornmentInfo to format pie labels.
I created a PieLabelConverter for add "%" symbol of value et set the correspondent percentage value, but I don't have access to all series value to change for percentage value.
I tried to set SegmentLabelContent to LabelContent.Percentage, but it does not work.
Should I calculate mysefl the percentage ? If so, then how I get values of items of each series in my converter ?

Thanks

Dario Quispe


Attachment: Percentage_ac6732be.zip

Sheik Syed Abthaheer M [Syncfusion]
Replied On January 15, 2015 08:34 AM UTC

Hi Dario,

Thanks for using Syncfusion products.

We have analyzed your reported sample and we need to bind the property (like YData,XData) in Adornment label template when we set SegmentLabelContent as LabelContentPath. Otherwise we no need to bind the property(in sample you have bound the property, that’s why you can’t access the converter).
If you want to show values in percentage then you can use SegmentLabelContent as Percentage(by default % symbol will be add) or if you want add % symbol in YValue then you can use converter. We have prepared the sample based on your requirement. Please find the sample in the below location.

Sample: AdornmentPercentage.zip


Also please find the below UG documentation for customizing adornments in SfChart.

Link: http://help.syncfusion.com/ug/wpf/documents/customizingadornment.htm

Please let us know if you need any further assistance.

Regards,
M.Sheik

 



Dario Quispe
Replied On January 16, 2015 06:01 PM UTC

Thanks, it works.

Dario

Rachel A [Syncfusion]
Replied On January 19, 2015 06:34 AM UTC

Hi Dario,

Thanks for the update.

Please let us know if you require further assistance on this.

 

Thanks,

Rachel.A



CONFIRMATION

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.

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

;