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.

Pie Series Segment Labels

Thread ID:





128112 Jan 3,2017 05:48 AM Jan 4,2017 08:09 AM UWP 1
Tags: SfChart
David Harvey
Asked On January 3, 2017 05:48 AM

I have a Pie chart being shown with the various segments properly displayed.  I have the legend shown above it, and the colours matching correctly.

However I do not see any labels (neither inside nor outside the pie chart) that show the value for each segment (i.e.: 75%, 25%).

I would like to know how to do the following:

-- Indicate I want to display the segment value (as a percentage or absolute value or both)
-- Indicate where I want to display the value (either inside the chart or next to it with leader lines)

Thank you.

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On January 4, 2017 08:09 AM

Hi David, 
Thanks for contacting Syncfusion Support. 
We can display value of each segment by enabling the ShowLabel property of PieSeries’s AdornmentsInfo as shown like the below code snippet, 
            <chart:PieSeries LabelPosition="Inside"> 
                    <chart:ChartAdornmentInfo ShowLabel="True"/> 
You can customize the position of adornment label with LabelPosition property of PieSeries. The default value of LabelPosition property is Inside. 
We have prepared a demo sample based on your requirement and it can be downloaded from below link, 
Sample: PieLegend 
Please refer our UG documentation link to know more about adornments, 


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.