Class CircularSeries
CircularSeries is the base class for pie and doughnut charts.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public abstract class CircularSeries : ChartSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent
Constructors
CircularSeries()
Initializes a new instance of the CircularSeries class.
Declaration
public CircularSeries()
Fields
DataLabelSettingsProperty
Identifies the DataLabelSettings bindable property.
Declaration
public static readonly BindableProperty DataLabelSettingsProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
EndAngleProperty
Identifies the EndAngle bindable property.
Declaration
public static readonly BindableProperty EndAngleProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
RadiusProperty
Identifies the Radius bindable property.
Declaration
public static readonly BindableProperty RadiusProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StartAngleProperty
Identifies the StartAngle bindable property.
Declaration
public static readonly BindableProperty StartAngleProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StrokeProperty
Identifies the Stroke bindable property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StrokeWidthProperty
Identifies the StrokeWidth bindable property.
Declaration
public static readonly BindableProperty StrokeWidthProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
YBindingPathProperty
Identifies the YBindingPath bindable property.
Declaration
public static readonly BindableProperty YBindingPathProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
DataLabelSettings
Gets or sets a value to customize the appearance of the displaying data labels in the circular series.
Declaration
public CircularDataLabelSettings DataLabelSettings { get; set; }
Property Value
Type | Description |
---|---|
CircularDataLabelSettings | This property takes the CircularDataLabelSettings. |
Remarks
This allows us to change the look of the displaying labels' content, shapes, and connector lines at the data point.
Examples
<chart:SfCircularChart>
<chart:SfCircularChart.Series>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True">
<syncfusion:PieSeries.DataLabelSettings>
<chart:CircularDataLabelSettings LabelPlacement="Outer" />
<syncfusion:PieSeries.DataLabelSettings>
</chart:PieSeries>
</chart:SfCircularChart.Series>
</chart:SfCircularChart>
EndAngle
Gets or sets a value that can be used to modify the series end rendering position.
Declaration
public double EndAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values, and the default value is 360. |
Remarks
It is used to draw a series in different shapes.
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
EndAngle = "270"/>
</chart:SfCircularChart>
Radius
Gets or sets a value that can be used to render the series size.
Declaration
public double Radius { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values, and the default value is 0.8. Here, the value is between 0 and 1. |
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
Radius = "0.7"/>
</chart:SfCircularChart>
StartAngle
Gets or sets a value that can be used to modify the series start rendering position.
Declaration
public double StartAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values, and the default value is 0. |
Remarks
It is used to draw a series in different shapes.
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
StartAngle = "180"/>
</chart:SfCircularChart>
Stroke
Gets or sets a value to customize the stroke appearance of the series.
Declaration
public Brush Stroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | It accepts Microsoft.Maui.Controls.Brush values and its default value is null. |
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
Stroke = "Red"
StrokeWidth = "3"/>
</chart:SfCircularChart>
StrokeWidth
Gets or sets a value to specify the stroke width of a chart series.
Declaration
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values and its default value is 2. |
Remarks
The value needs to be greater than zero.
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
Stroke = "Red"
StrokeWidth = "3"/>
</chart:SfCircularChart>
YBindingPath
Gets or sets a path value on the source object to serve a y value to the series.
Declaration
public string YBindingPath { get; set; }
Property Value
Type | Description |
---|---|
System.String | The string that represents the property name for the y plotting data, and its default value is null. |
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue" />
</chart:SfCircularChart>
Methods
DrawDataLabel(ICanvas, Brush, String, PointF, Int32)
Declaration
protected override void DrawDataLabel(ICanvas canvas, Brush fillcolor, string label, PointF point, int index)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.ICanvas | canvas | |
Microsoft.Maui.Controls.Brush | fillcolor | |
System.String | label | |
Microsoft.Maui.Graphics.PointF | point | |
System.Int32 | index |
Overrides
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()