menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PolarSeries - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PolarSeries

    It is the base class for all types of polar series.

    Inheritance
    System.Object
    ChartSeries
    PolarSeries
    PolarAreaSeries
    PolarLineSeries
    Inherited Members
    ChartSeries.CreateAnimation(Action<Double>)
    ChartSeries.CreateSegment()
    ChartSeries.DrawDataLabel(ICanvas, Brush, String, PointF, Int32)
    ChartSeries.DrawSeries(ICanvas, ReadOnlyObservableCollection<ChartSegment>, RectF)
    ChartSeries.EnableAnimation
    ChartSeries.EnableAnimationProperty
    ChartSeries.EnableTooltip
    ChartSeries.EnableTooltipProperty
    ChartSeries.Fill
    ChartSeries.FillProperty
    ChartSeries.IsVisible
    ChartSeries.IsVisibleOnLegend
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.IsVisibleProperty
    ChartSeries.ItemsSource
    ChartSeries.ItemsSourceProperty
    ChartSeries.LabelContext
    ChartSeries.LabelContextProperty
    ChartSeries.LabelTemplate
    ChartSeries.LabelTemplateProperty
    ChartSeries.LegendIcon
    ChartSeries.LegendIconProperty
    ChartSeries.OnParentSet()
    ChartSeries.Opacity
    ChartSeries.OpacityProperty
    ChartSeries.PaletteBrushes
    ChartSeries.PaletteBrushesProperty
    ChartSeries.SelectionBehavior
    ChartSeries.SelectionBehaviorProperty
    ChartSeries.ShowDataLabels
    ChartSeries.ShowDataLabelsProperty
    ChartSeries.TooltipTemplate
    ChartSeries.TooltipTemplateProperty
    ChartSeries.XBindingPath
    ChartSeries.XBindingPathProperty
    ChartSeries.XRange
    ChartSeries.YRange
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.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

    IsClosedProperty

    Identifies the IsClosed bindable property.

    Declaration
    public static readonly BindableProperty IsClosedProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    LabelProperty

    Identifies the Label bindable property.

    Declaration
    public static readonly BindableProperty LabelProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    MarkerSettingsProperty

    Identifies the MarkerSettings bindable property.

    Declaration
    public static readonly BindableProperty MarkerSettingsProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    ShowMarkersProperty

    Identifies the ShowMarkers bindable property.

    Declaration
    public static readonly BindableProperty ShowMarkersProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    StrokeDashArrayProperty

    Identifies the StrokeDashArray bindable property.

    Declaration
    public static readonly BindableProperty StrokeDashArrayProperty
    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 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 shapes.

    Examples
    • Xaml
    • C#
        <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>
        SfPolarChart chart = new SfPolarChart();
    
        NumericalAxis primaryAxis = new NumericalAxis();
        NumericalAxis secondaryAxis = new NumericalAxis();
    
        chart.PrimaryAxis = primaryAxis;
        chart.SecondaryAxis = secondaryAxis;
    
        PolarAreaSeries series = new PolarAreaSeries();
        series.ItemsSource = viewModel.Data;
        series.XBindingPath = "XValue";
        series.YBindingPath = "YValue";
        series.ShowDataLabels = "True";
    
        series.DataLabelSettings = new PolarDataLabelSettings()
        {
            LabelPlacement = DataLabelPlacement.Inner
        };
        chart.Series.Add(series);

    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

    If its true, series path will be closed; otherwise opened.

    Examples
    • Xaml
    • C#
    <chart:SfPolarChart>
    
        <!-- Eliminated for simplicity-->
    
        <chart:PolarAreaSeries ItemsSource="{Binding Data}" 
                               XBindingPath="XValue"
                               YBindingPath="YValue"
                               IsClosed="True"/>
    
    </chart:SfPolarChart>
    SfPolarChart chart = new SfPolarChart();
    
    ViewModel viewModel = new ViewModel();
    
    // Eliminated for simplicity
    PolarAreaSeries series = new PolarAreaSeries();
    series.ItemsSource = viewModel.Data;
    series.XBindingPath = "XValue";
    series.YBindingPath = "YValue";
    series.IsClosed = true;
    chart.Series.Add(series);

    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 string value, and its default value is string.Empty.

    Examples
    • Xaml
    • C#
        <chart:SfPolarChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:PolarAreaSeries ItemsSource="{Binding Data}"
                               XBindingPath="XValue"
                               YBindingPath="YValue"
                               Label = "PolarAreaSeries"/>
    
        </chart:SfPolarChart>
        SfPolarChart chart = new SfPolarChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        PolarAreaSeries polarAreaSeries = new PolarAreaSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue",
              Label = "PolarAreaSeries"
        };
    
        chart.Series.Add(polarAreaSeries);

    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
    • Xaml
    • C#
        <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>
        SfPolarChart chart = new SfPolarChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
       ChartMarkerSettings chartMarkerSettings = new ChartMarkerSettings()
       {
           Fill = new SolidColorBrush(Colors.Red),
           Height = 15,
           Width = 15
       };
        PolarAreaSeries series = new PolarAreaSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue",
              ShowMarkers= true,
              MarkerSettings= chartMarkerSettings
        };
    
        chart.Series.Add(series);

    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 boolean values and its default value is false.

    Examples
    • Xaml
    • C#
        <chart:SfPolarChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:PolarAreaSeries ItemsSource="{Binding Data}"
                               XBindingPath="XValue"
                               YBindingPath="YValue"
                               ShowMarkers="True"/>
    
        </chart:SfPolarChart>
        SfPolarChart chart = new SfPolarChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        PolarAreaSeries series = new PolarAreaSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue",
              ShowMarkers= true
        };
    
        chart.Series.Add(series);

    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
    • Xaml
    • C#
        <chart:SfPolarChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:PolarLineSeries ItemsSource="{Binding Data}"
                               XBindingPath="XValue"
                               YBindingPath="YValue"
                               StrokeDashArray="5,3"
                               Stroke = "Red" />
    
        </chart:SfPolarChart>
        SfPolarChart chart = new SfPolarChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        DoubleCollection doubleCollection = new DoubleCollection();
        doubleCollection.Add(5);
        doubleCollection.Add(3);
        PolarLineSeries series = new PolarLineSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue",
              StrokeDashArray = doubleCollection,
              Stroke = new SolidColorBrush(Colors.Red)
        };
    
        chart.Series.Add(series);

    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
    • Xaml
    • C#
        <chart:SfPolarChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:PolarLineSeries ItemsSource="{Binding Data}"
                               XBindingPath="XValue"
                               YBindingPath="YValue"
                               StrokeWidth = "3" />
    
        </chart:SfPolarChart>
        SfPolarChart chart = new SfPolarChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        PolarLineSeries series = new PolarLineSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue",
              StrokeWidth = 3
        };
    
        chart.Series.Add(series);

    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
    • Xaml
    • C#
        <chart:SfPolarChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:PolarAreaSeries ItemsSource="{Binding Data}"
                               XBindingPath="XValue"
                               YBindingPath="YValue" />
    
        </chart:SfPolarChart>
        SfPolarChart chart = new SfPolarChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        PolarAreaSeries polarAreaSeries = new PolarAreaSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue"
        };
    
        chart.Series.Add(polarAreaSeries);

    Methods

    GetDataPointIndex(Single, Single)

    Methods to get the index of data point.

    Declaration
    public override int GetDataPointIndex(float x, float y)
    Parameters
    Type Name Description
    System.Single x
    System.Single y
    Returns
    Type
    System.Int32
    Overrides
    ChartSeries.GetDataPointIndex(Single, Single)

    OnBindingContextChanged()

    Declaration
    protected override void OnBindingContextChanged()
    Overrides
    ChartSeries.OnBindingContextChanged()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved