menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PolarSeries - WinUI 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
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ChartSeries.ActualXAxis
    ChartSeries.ActualYAxis
    ChartSeries.AnimationDuration
    ChartSeries.AnimationDurationProperty
    ChartSeries.Chart
    ChartSeries.EnableAnimation
    ChartSeries.EnableAnimationProperty
    ChartSeries.EnableTooltip
    ChartSeries.EnableTooltipProperty
    ChartSeries.Fill
    ChartSeries.FillProperty
    ChartSeries.IsSeriesVisible
    ChartSeries.IsSeriesVisibleProperty
    ChartSeries.IsVisibleOnLegend
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.ItemsSource
    ChartSeries.ItemsSourceProperty
    ChartSeries.Label
    ChartSeries.LabelProperty
    ChartSeries.LegendIcon
    ChartSeries.LegendIconProperty
    ChartSeries.LegendIconTemplate
    ChartSeries.LegendIconTemplateProperty
    ChartSeries.ListenPropertyChange
    ChartSeries.ListenPropertyChangeProperty
    ChartSeries.OnPointerExited(PointerRoutedEventArgs)
    ChartSeries.OnPointerMoved(PointerRoutedEventArgs)
    ChartSeries.OnPointerPressed(PointerRoutedEventArgs)
    ChartSeries.OnPointerReleased(PointerRoutedEventArgs)
    ChartSeries.PaletteBrushes
    ChartSeries.PaletteBrushesProperty
    ChartSeries.PropertyChanged
    ChartSeries.ResumeNotification()
    ChartSeries.SelectionBehavior
    ChartSeries.SelectionBehaviorProperty
    ChartSeries.ShowDataLabels
    ChartSeries.ShowDataLabelsProperty
    ChartSeries.SpacingProperty
    ChartSeries.SuspendNotification()
    ChartSeries.TooltipTemplate
    ChartSeries.TooltipTemplateProperty
    ChartSeries.TrackballLabelTemplate
    ChartSeries.TrackballLabelTemplateProperty
    ChartSeries.XBindingPath
    ChartSeries.XBindingPathProperty
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.Chart.WinUI.dll
    Syntax
    public abstract class PolarSeries : ChartSeries, INotifyPropertyChanged

    Constructors

    PolarSeries()

    Initializes a new instance of the class.

    Declaration
    public PolarSeries()

    Fields

    DataLabelSettingsProperty

    Identifies the DataLabelSettings dependency property.

    Declaration
    public static readonly DependencyProperty DataLabelSettingsProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for DataLabelSettings dependency property.

    IsClosedProperty

    Identifies the IsClosed dependency property.

    Declaration
    public static readonly DependencyProperty IsClosedProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for IsClosed dependency property.

    StrokeDashArrayProperty

    Identifies the StrokeDashArray dependency property.

    Declaration
    public static readonly DependencyProperty StrokeDashArrayProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for StrokeDashArray dependency property.

    StrokeProperty

    The DependencyProperty for Stroke property.

    Declaration
    public static readonly DependencyProperty StrokeProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    StrokeWidthProperty

    The DependencyProperty for StrokeWidth property.

    Declaration
    public static readonly DependencyProperty StrokeWidthProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    YBindingPathProperty

    Identifies the YBindingPath dependency property.

    Declaration
    public static readonly DependencyProperty YBindingPathProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for YBindingPath dependency property.

    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 a data point by displaying labels, shapes, and connector lines.

    Examples
    • MainWindow.xaml
    • MainWindow.cs
    <chart:SfPolarChart>
    
        <!--omitted for brevity-->
    
        <chart:PolarAreaSeries ItemsSource="{Binding Data}"
                               XBindingPath="XValue"
                               YBindingPath="YValue" 
                               ShowDataLabels="True">
             <syncfusion:PolarAreaSeries.DataLabelSettings>
                 <chart:PolarDataLabelSettings />
             <syncfusion:PolarAreaSeries.DataLabelSettings>
        </chart:PolarAreaSeries> 
    
    </chart:SfPolarChart>
    SfPolarChart chart = new SfPolarChart();
    
    ViewModel viewmodel = new ViewModel();
    
    //omitted for brevity
    PolarAreaSeries series = new PolarAreaSeries();
    series.ItemsSource = viewmodel.Data;
    series.XBindingPath = "XValue";
    series.YBindingPath = "YValue";
    series.ShowDataLabels = true;
    chart.Series.Add(series);
    
    series.DataLabelSettings = new PolarDataLabelSettings();

    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

    It accepts bool values and its default value is True.

    Remarks

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

    Examples
    • MainWindow.xaml
    • MainWindow.cs
    <chart:SfPolarChart>
    
        <!--omitted for brevity-->
    
        <chart:PolarAreaSeries ItemsSource="{Binding Data}" 
                               XBindingPath="XValue"
                               YBindingPath="YValue"
                               IsClosed="True"/>
    
    </chart:SfPolarChart>
    SfPolarChart chart = new SfPolarChart();
    
    ViewModel viewmodel = new ViewModel();
    
    //omitted for brevity
    PolarAreaSeries series = new PolarAreaSeries();
    series.ItemsSource = viewmodel.Data;
    series.XBindingPath = "XValue";
    series.YBindingPath = "YValue";
    series.IsClosed = true;
    chart.Series.Add(series);

    Stroke

    Gets or sets a value to customize the stroke appearance of a chart series.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type Description
    Microsoft.UI.Xaml.Media.Brush

    It accepts Microsoft.UI.Xaml.Media.Brush values and its default value is null.

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

    StrokeDashArray

    Gets or sets the Microsoft.UI.Xaml.Media.DoubleCollection value for stroke dash array to customize the stroke appearance of PolarSeries.

    Declaration
    public DoubleCollection StrokeDashArray { get; set; }
    Property Value
    Type Description
    Microsoft.UI.Xaml.Media.DoubleCollection

    It takes Microsoft.UI.Xaml.Media.DoubleCollection value and the default value is null.

    Examples
    • MainWindow.xaml
    • MainWindow.cs
    <chart:SfPolarChart>
    
        <!--omitted for brevity-->
    
        <chart:PolarLineSeries ItemsSource="{Binding Data}" 
                               XBindingPath="XValue"
                               YBindingPath="YValue"
                               StrokeDashArray="5,3"/>
    
    </chart:SfPolarChart>
    SfPolarChart chart = new SfPolarChart();
    
    ViewModel viewmodel = new ViewModel();
    
    // omitted for brevity
    PolarLineSeries series = new PolarLineSeries();
    series.ItemsSource = viewmodel.Data;
    series.XBindingPath = "XValue";
    series.YBindingPath = "YValue";
    chart.Series.Add(series);
    
    DoubleCollection doubleCollection = new DoubleCollection();
    doubleCollection.Add(5);
    doubleCollection.Add(3);
    series.StrokeDashArray = doubleCollection;

    StrokeWidth

    Gets or sets a value to specify the stroke thickness 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.

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

    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
    • MainWindow.xaml
    • MainWindow.cs
    <chart:SfPolarChart>
    
        <!--omitted for brevity-->
    
        <chart:PolarAreaSeries ItemsSource="{Binding Data}" 
                               XBindingPath="XValue"
                               YBindingPath="YValue"/>
    
    </chart:SfPolarChart>
    SfPolarChart chart = new SfPolarChart();
    
    ViewModel viewmodel = new ViewModel();
    
    //omitted for brevity
    PolarAreaSeries series = new PolarAreaSeries();
    series.ItemsSource = viewmodel.Data;
    series.XBindingPath = "XValue";
    series.YBindingPath = "YValue";
    chart.Series.Add(series);

    Methods

    OnApplyTemplate()

    Declaration
    protected override void OnApplyTemplate()
    Overrides
    ChartSeries.OnApplyTemplate()

    OnTapped(TappedRoutedEventArgs)

    Declaration
    protected override void OnTapped(TappedRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.TappedRoutedEventArgs e
    Overrides
    ChartSeries.OnTapped(TappedRoutedEventArgs)

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved