How to set the rendering size in .NET MAUI Chart (SfCircularChart)?
This article provides instructions on how to customize the rendering size of a .NET MAUI Circular Chart. The size of the circular chart is specified by the Radius property, which is specified as a value between 0 and 1. The default setting is 0.8, indicating that the circular chart occupies 80% of the available space within the MAUI Chart by default.
XAML
<chart:SfCircularChart>
<chart:DoughnutSeries ItemsSource="{Binding Data}"
XBindingPath="Book"
YBindingPath="Percentage"
Radius="0.5"/>
</chart:SfCircularChart>
C#
SfCircularChart chart = new SfCircularChart();
DoughnutSeries series = new DoughnutSeries()
{
ItemsSource = new ViewModel().Data,
XBindingPath = "Book",
YBindingPath = "Percentage",
Radius = 0.5
};
chart.Series.Add(series);
this.Content = chart;
Output
Conclusion
I hope you enjoyed learning about how to set the rendering size in the .NET MAUI Chart (SfCircularChart).
You can refer to our .NET MAUI Chart’s feature tour page to know about its other groundbreaking feature representations. You can also explore our .NET MAUI Chart documentation to understand how to present and manipulate data.
For current customers, you can check out our .NET MAUI from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our .NET MAUI Chart and other .NET MAUI components.
If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!