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

Pie Series Segment Labels

Thread ID:

Created:

Updated:

Platform:

Replies:

128112 Jan 3,2017 10:48 AM UTC Jan 4,2017 01:09 PM UTC UWP 1
loading
Tags: SfChart
David Harvey
Asked On January 3, 2017 10:48 AM UTC

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 01:09 PM UTC

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:PieSeries.AdornmentsInfo> 
                    <chart:ChartAdornmentInfo ShowLabel="True"/> 
                </chart:PieSeries.AdornmentsInfo> 
            </chart:PieSeries> 
 
  
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, 
  
Regards, 
Devi 





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

;