Creating A Doughnut Chart For The World’S Top Coffee Producing Countries In 2023.

Updated on Feb 15, 2024
creating-doughnut-chart dotnet-maui-chart doughnut-chart doughnut-chart-in-dotnet-maui how-to-create-doughnut-chart maui

This sample demonstrates how to create a Doughnut Chart for the World’s Top Coffee Producing Countries in 2023.

Doughnut chart

Doughnut chart is used to show the relationship between parts of data and whole data. To render a DoughnutSeries in circular chart, create an instance of the DoughnutSeries and add it to the Series collection property of SfCircularChart.

Customize the doughnut chart

we customize the doughnut segment color, border, and width and group the data points less than the specific value using the PaletteBrushes, Stroke, StrokeWidth, and GroupTo properties, respectively.

We can also modify the start and end positions of a segment in the chart using the StartAngle and EndAngle properties.

Customize the CenterView

Any view can be added to the center of the doughnut chart using the CenterView property of DoughnutSeries. The view placed in the center of the doughnut chart is useful for sharing additional information about the doughnut chart. The binding context of the CenterView will be the respective doughnut series.

Using the CenterHoleSize, we can protect the view in the doughnut center from overlapping with the series

Updated-DoughnutChartOutput

For a step by step procedure, refer to the World's Top Coffee-Producing Countries.