Class CircularSeries
Represents the base class for all circular chart series, such as PieSeries, DoughnutSeries, and RadialBarSeries series.
Inherited Members
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.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 |
Remarks
Represents the customization for data labels in the circular series.
EndAngleProperty
Identifies the EndAngle bindable property.
Declaration
public static readonly BindableProperty EndAngleProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
Represents the ending angle (in degrees) of the circular series. Default is 360 degrees.
RadiusProperty
Identifies the Radius bindable property.
Declaration
public static readonly BindableProperty RadiusProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
Represents the radius of the circular series, where values range from 0 to 1.
StartAngleProperty
Identifies the StartAngle bindable property.
Declaration
public static readonly BindableProperty StartAngleProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
Represents the starting angle (in degrees) of the circular series. Default is 0 degrees.
StrokeProperty
Identifies the Stroke bindable property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
Represents the stroke brush for the circular series. This defines the color of the outline.
StrokeWidthProperty
Identifies the StrokeWidth bindable property.
Declaration
public static readonly BindableProperty StrokeWidthProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
Represents the width of the stroke for the circular series.
YBindingPathProperty
Identifies the YBindingPath bindable property.
Declaration
public static readonly BindableProperty YBindingPathProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
Represents the binding path for the Y-axis values in the circular series.
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, appearance, and connector lines at the data point.
Examples
<chart:SfCircularChart>
<chart:SfCircularChart.Series>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True">
<chart:PieSeries.DataLabelSettings>
<chart:CircularDataLabelSettings LabelPlacement="Outer" />
<chart: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 |
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 |
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 |
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 |
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 |
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 |
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue" />
</chart:SfCircularChart>
Methods
DrawDataLabel(ICanvas, Brush, String, PointF, Int32)
Draws the data labels for the series.
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 |