$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Chart Control for C# Windows Forms
Design Bar, Pie, Line, Area, Polar, Radar and Scatter for C# Windows Forms application
Home > WinForms UI Controls > User Manual > Chart Series Donut in C#

Donut Series of Chart for WinForms C# Tutorial

The Series Types of Chart View is a collection of Chart Series, including Area, SplineArea, Bar, Line, Spline, Scatter point, Combined series. The Chart control provides two primary functions to Chart series. One is a collection used to stand for the specific data and the other is to visualize the data by using a predefined model. The following are the series types that the Chart support, including Bar, Pie, Line, Area, Donut, Scatter, Polar, Stock, Radar, Categorical or Polar.
The Donut Series is completely different from all other series, because the Pie Series do not require axes. This feature is similar to Pie series. The Donut Series make every data point to visible Donut slices through proportional arc size directly to the magnitude of the raw data point’s value. The Donut series are only valid when it is in the context of Pie AreaType. Donut slices stand for data in 1 dimension rather than the other series that stand for data in 2 dimensions.

Customizing Properties of Donut Series for Chart

  • Range, this is a property used to customize the angle and display the chart in a full circle or in a partial circle. There are two parameters, StartAngle and SweepAngle.
  • StartAngle, this property is used to customize the start angle of the pie segments that will be drawn. And the pie slices are always set to render in the counter-clockwise direction.
  • SweepAngle, this property is used to display the chart in a full circle or in a partial circle. The below C# code snippet shows how the PieSeries customize the Range property
  • DisplayLabels, this property is used to control if visualizing the labels above each point or not
  • RadiusFactor, this property is used to increase or decrease the diameter of the series. When the value of the RadiusFactor is less than 1, the radius of the series will be decreased; in contrast, when the value of the RadiusFactor is greater than 1, the radius of the series will be increased.
Additionally, DonutSeries allows offsetting a pie segment from the rest of the slices. This is achieved through the OffsetFromCenter property of the individual PieDataPoint. The following C# Code snippet demonstrates how to shift the first pie piece:

PieDataPoint point = series.DataPoints[3] as PieDataPoint;
if (point != null)
{
point.OffsetFromCenter = 0.1;
}
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls