Articles in this section
Category / Section

How to show percentage value in Pie Chart’s data marker?

You can show the percentage value in data markers by using the labelContent property of SFChartDataMarker. Please refer the following code example.

Objective – c

SFPieSeries  * series = [[SFPieSeries  alloc] init];
series.dataMarker.labelContent = SFChartLabelContentPercentage;

 

Swift

var series : SFPieSeries  = SFPieSeries();
series.dataMarker.labelContent = SFChartLabelContent.Percentage;

 

C#

SFPieSeries series    =  new SFPieSeries (); 
series.DataMarker.LabelContent    = SFChartLabelContent.Percentage; 

 

C:\Users\labuser\Pictures\Pie_content.png

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied