Articles in this section
Category / Section

How to set size of pie/doughnut?

1 min read

The CircularCoefficient property determines the size of pie and doughnut series based on the available size in chart. It takes value from 0 to 1. The default value of this property is 0.8. So, pie and doughnut series takes 80 percentage of the available size (size allocated to render the series after placing the legend and chart title) of the chart, by default. The following code example illustrates this.


        <chart:PieSeries …
                 CircularCoefficient="0.5" />


PieSeries pieSeries = new PieSeries();
pieSeries.CircularCoefficient = 0.5;

The following screenshot illustrates the output of above code snippet.


Size modified pie chart in Xamarin.Forms

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Please sign in to leave a comment