Class PolarSeries
It is the base class for all types of polar series.
Inherited Members
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public abstract class PolarSeries : ChartSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent, IDrawCustomLegendIcon, IMarkerDependent
Constructors
PolarSeries()
Initializes a new instance of the PolarSeries
Declaration
public PolarSeries()
Fields
DataLabelSettingsProperty
Identifies the DataLabelSettings bindable property.
Declaration
public static readonly BindableProperty DataLabelSettingsProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The DataLabelSettings property helps to customize the data labels in the polar series.
IsClosedProperty
Identifies the IsClosed bindable property.
Declaration
public static readonly BindableProperty IsClosedProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The IsClosed property indicating whether the area path for the polar series should be closed or opened.
LabelProperty
Identifies the Label bindable property.
Declaration
public static readonly BindableProperty LabelProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The Label property represents the label that will be displayed in the associated legend item.
MarkerSettingsProperty
Identifies the MarkerSettings bindable property.
Declaration
public static readonly BindableProperty MarkerSettingsProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The MarkerSettings property allows customization of the series markers.
ShowMarkersProperty
Identifies the ShowMarkers bindable property.
Declaration
public static readonly BindableProperty ShowMarkersProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The ShowMarkers property determines whether markers are displayed on the chart points.
StrokeDashArrayProperty
Identifies the StrokeDashArray bindable property.
Declaration
public static readonly BindableProperty StrokeDashArrayProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The StrokeDashArray property specifies customization of the stroke patterns in the series.
StrokeWidthProperty
Identifies the StrokeWidth bindable property.
Declaration
public static readonly BindableProperty StrokeWidthProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The StrokeWidth property indicates the thickness of stroke.
YBindingPathProperty
Identifies the YBindingPath bindable property.
Declaration
public static readonly BindableProperty YBindingPathProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The YBindingPath property specifies the path to the Y-axis for the polar series.
Properties
DataLabelSettings
Gets or sets a value to customize the appearance of the displaying data labels in the polar series.
Declaration
public PolarDataLabelSettings DataLabelSettings { get; set; }
Property Value
Type | Description |
---|---|
PolarDataLabelSettings | It takes the PolarDataLabelSettings. |
Remarks
This allows us to change the look of the displaying labels' content, and appearance at the data point.
Examples
<chart:SfPolarChart>
<chart:SfPolarChart.PrimaryAxis>
<chart:NumericalAxis/>
</chart:SfPolarChart.PrimaryAxis>
<chart:SfPolarChart.SecondaryAxis>
<chart:NumericalAxis/>
</chart:SfPolarChart.SecondaryAxis>
<chart:PolarAreaSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True">
<chart:PolarAreaSeries.DataLabelSettings>
<chart:PolarDataLabelSettings LabelPlacement="Inner"/>
</chart:PolarAreaSeries.DataLabelSettings>
</chart:PolarAreaSeries>
</chart:SfPolarChart>
IsClosed
Gets or sets a value indicating whether the area path for the polar series should be closed or opened.
Declaration
public bool IsClosed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | This property takes the |
Remarks
If its true
, series path will be closed; otherwise opened.
Examples
<chart:SfPolarChart>
<!-- Eliminated for simplicity-->
<chart:PolarAreaSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
IsClosed="False"/>
</chart:SfPolarChart>
Label
Gets or sets a value displayed in the associated legend item.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String | It accepts a |
Examples
<chart:SfPolarChart>
<!-- ... Eliminated for simplicity-->
<chart:PolarAreaSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
Label = "PolarAreaSeries"/>
</chart:SfPolarChart>
MarkerSettings
Gets or sets the option for customize the series markers.
Declaration
public ChartMarkerSettings MarkerSettings { get; set; }
Property Value
Type | Description |
---|---|
ChartMarkerSettings | It accepts ChartMarkerSettings. |
Examples
<chart:SfPolarChart>
<!-- ... Eliminated for simplicity-->
<chart:PolarAreaSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowMarkers="True">
<chart:PolarAreaSeries.MarkerSettings>
<chart:ChartMarkerSettings Fill="Red" Height="15" Width="15" />
</chart:PolarAreaSeries.MarkerSettings>
</chart:PolarAreaSeries>
</chart:SfPolarChart>
ShowMarkers
Gets or sets the value indicating whether to show markers for the series data point.
Declaration
public bool ShowMarkers { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | It accepts |
Examples
<chart:SfPolarChart>
<!-- ... Eliminated for simplicity-->
<chart:PolarAreaSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowMarkers="True"/>
</chart:SfPolarChart>
StrokeDashArray
Gets or sets the stroke dash array to customize the appearance of stroke.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.DoubleCollection | It accepts the Microsoft.Maui.Controls.DoubleCollection value and the default value is null. |
Examples
<chart:SfPolarChart>
<!-- ... Eliminated for simplicity-->
<chart:PolarLineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
StrokeDashArray="5,3"
Stroke = "Red" />
</chart:SfPolarChart>
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:SfPolarChart>
<!-- ... Eliminated for simplicity-->
<chart:PolarLineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
StrokeWidth = "3" />
</chart:SfPolarChart>
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:SfPolarChart>
<!-- ... Eliminated for simplicity-->
<chart:PolarAreaSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue" />
</chart:SfPolarChart>
Methods
DrawMarker(ICanvas, Int32, ShapeType, Rect)
Draws the markers for the polar series at each data point location on the chart.
Declaration
protected virtual void DrawMarker(ICanvas canvas, int index, ShapeType type, Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.ICanvas | canvas | |
System.Int32 | index | |
ShapeType | type | |
Microsoft.Maui.Graphics.Rect | rect |
GetDataPointIndex(Single, Single)
Retrieves the index of a specific data point within a chart series, typically based on the interaction or coordinates on the chart.
Declaration
public override int GetDataPointIndex(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y |
Returns
Type |
---|
System.Int32 |