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.
XAML:
<chart:SfChart.Series> <chart:PieSeries … CircularCoefficient="0.5" /> </chart:PieSeries> </chart:SfChart.Series>
C#:
PieSeries pieSeries = new PieSeries(); pieSeries.CircularCoefficient = 0.5;
The following screenshot illustrates the output of above code snippet.