Class PolarDataLabelSettings
The PolarDataLabelSettings class is used to customize the appearance of polar series data labels.
Inherited Members
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.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.
<chart:SfPolarChart>
<!-- ... Eliminated for simplicity-->
<chart:PolarLineSeries ItemsSource ="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True"/>
</chart:SfPolarChart>
Customization
To change the appearance of data labels, it offers LabelStyle options.
Null values are invalid for LabelStyle.
<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>
Constructors
PolarDataLabelSettings()
Initializes a new instance of the PolarDataLabelSettings.
Declaration
public PolarDataLabelSettings()