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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set size of pie/doughnut?

Platform: Xamarin.Forms |
Control: SfChart |
Published Date: October 30, 2015 |
Last Revised Date: June 27, 2019

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.

Output

Size modified pie chart in Xamarin.Forms

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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