Class DoughnutSeries
The DoughnutSeries displays data as a proportion of the whole. Its most commonly used to make comparisons among a set of given data.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public class DoughnutSeries : PieSeries, INotifyPropertyChanged
Remarks
It is similar to the PieSeries. To render a series, create an instance of the doughnut series class, and add it to the Series collection.
It Provides options for PaletteBrushes, Fill, Stroke, StrokeWidth, and InnerRadius to customize the appearance.
EnableTooltip - The tooltip displays information while tapping or mouse hovering on the segment. To display the tooltip on the chart, you need to set the EnableTooltip property as true in DoughnutSeries and refer to the TooltipBehavior property.
Data Label - Data labels are used to display values related to a chart segment. To render the data labels, you need to set the
Animation - To animate the series, set True to the EnableAnimation property.
Selection - To enable the data point selection in the series, create an instance of the DataPointSelectionBehavior and set it to the
LegendIcon - To customize the legend icon using the LegendIcon, and LegendIconTemplate property.
Examples
<chart:SfCircularChart>
<chart:DoughnutSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"/>
</chart:SfCircularChart>
Constructors
DoughnutSeries()
Initializes a new instance of the DoughnutSeries class.
Declaration
public DoughnutSeries()
Fields
InnerRadiusProperty
The DependencyProperty for InnerRadius property
Declaration
public static readonly DependencyProperty InnerRadiusProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
InnerRadius
Gets or sets a value that can be used to define the inner circle.
Declaration
public double InnerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values, and the default value is 0.4. Here, the value is between 0 and 1. |
Examples
<chart:SfCircularChart>
<chart:DoughnutSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
InnerRadius = "0.5"/>
</chart:SfCircularChart>
Segment
Declaration
public DoughnutSegment Segment { get; }
Property Value
Type |
---|
DoughnutSegment |