menu

MAUI

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

    Show / Hide Table of Contents

    Class PolarDataLabelSettings

    The PolarDataLabelSettings class is used to customize the appearance of polar series data labels.

    Inheritance
    System.Object
    ChartDataLabelSettings
    PolarDataLabelSettings
    Inherited Members
    ChartDataLabelSettings.LabelPlacement
    ChartDataLabelSettings.LabelPlacementProperty
    ChartDataLabelSettings.LabelStyle
    ChartDataLabelSettings.LabelStyleProperty
    ChartDataLabelSettings.OnBindingContextChanged()
    ChartDataLabelSettings.UseSeriesPalette
    ChartDataLabelSettings.UseSeriesPaletteProperty
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class PolarDataLabelSettings : ChartDataLabelSettings
    Remarks

    To customize data labels, create an instance of the PolarDataLabelSettings class and set it to the DataLabelSettings property of a polar series.

    ShowDataLabels

    Data labels can be added to a chart series by enabling the ShowDataLabels option.

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

    Customization

    To change the appearance of data labels, it offers LabelStyle options.

    Null values are invalid for LabelStyle.

    • Xaml
    • C#
       <chart:SfPolarChart>
    
        <!-- ... Eliminated for simplicity-->
          <chart:PolarLineSeries ItemsSource ="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue"
                           ShowDataLabels="True">
             <chart:PolarLineSeries.PolarDataLabelSettings>
                  <chart:PolarDataLabelSettings>
                       <chart:PolarDataLabelSettings.LabelStyle>
                           <chart:ChartDataLabelStyle Background = "Red" FontSize="14" TextColor="Black" />
                       </chart:PolarDataLabelSettings.LabelStyle>
                   </chart:PolarDataLabelSettings>
             </chart:PolarLineSeries.PolarDataLabelSettings>
          <chart:PolarLineSeries />
       </chart:SfPolarChart>
        SfPolarChart chart = new SfPolarChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
        PolarLineSeries series = new PolarLineSeries()
        {
           ItemsSource = viewModel.Data,
           XBindingPath = "XValue",
           YBindingPath = "YValue",
           ShowDataLabels = true
        };
    
        var labelStyle = new ChartDataLabelStyle()
        { 
            Background = new SolidColorBrush(Colors.Red),
            TextColor = Colors.Black,
            FontSize = 14
        };
        series.DataLabelSettings = new PolarDataLabelSettings()
        {
            LabelStyle = labelStyle
        };
    
        chart.Series.Add(series);

    Constructors

    PolarDataLabelSettings()

    Initializes a new instance of the PolarDataLabelSettings.

    Declaration
    public PolarDataLabelSettings()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved