Class CircularDataLabelSettings
The CircularDataLabelSettings class is used to customize the appearance of circular series data labels.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class CircularDataLabelSettings : ChartDataLabelSettings
Remarks
To customize data labels, create an instance of the CircularDataLabelSettings class, and set it to the DataLabelSettings property of the circular series.
ShowDataLabels
Data labels can be added to a chart series by enabling the ShowDataLabels option.
<chart:SfCircularChart>
<chart:PieSeries ItemsSource ="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True"/>
</chart:SfCircularChart>
Customization
To change the appearance of data labels, it offers LabelStyle options.
<chart:SfCircularChart>
<chart:PieSeries ItemsSource ="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue"
ShowDataLabels="True">
<chart:PieSeries.DataLabelSettings>
<chart:CircularDataLabelSettings>
<chart:CircularDataLabelSettings.LabelStyle>
<chart:ChartDataLabelStyle Background = "Red" FontSize="14" TextColor="Black" />
</chart:CircularDataLabelSettings.LabelStyle>
</chart:CircularDataLabelSettings>
</chart:PieSeries.DataLabelSettings>
</chart:PieSeries>
</chart:SfCircularChart>
Constructors
CircularDataLabelSettings()
Initializes a new instance of the CircularDataLabelSettings.
Declaration
public CircularDataLabelSettings()
Fields
ConnectorTypeProperty
Identifies the ConnectorType bindable property.
Declaration
public static readonly BindableProperty ConnectorTypeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty |
Properties
ConnectorType
Gets or sets a value that can be used to specify the connector type.
Declaration
public ConnectorType ConnectorType { get; set; }
Property Value
Type | Description |
---|---|
ConnectorType | It accepts ConnectorType values and its default value is Line. |
Examples
<chart:SfCircularChart>
<chart:PieSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True">
<chart:PieSeries.DataLabelSettings>
<chart:CircularDataLabelSettings ConnectorType="Curve" />
</chart:PieSeries.DataLabelSettings>
</chart:PieSeries>
</chart:SfCircularChart>