Hi Tung,
Please find the response for your queries.
Query 1: How to display percentage(%) of each component in pie chart
We would like to let you know that you can achieve your requirement by setting LabelContent property of DataMarker as Percentage, please refer the below code snippet.
Code snippet [C#]
pieseries.DataMarker.ShowLabel = true; pieseries.DataMarker.LabelContent = LabelContent.Percentage;
|
Query 2: How to change color in sfchart - i tried to use Color but it did not work
You can change the color of the series using Color property of ChartSeries. Please refer the following code snippet to override the default color, we have also prepared a sample for your reference, please find the sample from the following location.
Code snippet [C#]
chartSeries.Color = Android.Graphics.Color.Red;
|
Sample:
http://www.syncfusion.com/downloads/support/forum/118866/Sample-2071988895.zip Please let us know if you require further assistance on this.
Thanks,
Yuvaraj P