Class ConnectorLineStyle
The ConnectorLineStyle class is used to customize the appearance of the data label connector line when data labels are placed outside.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class ConnectorLineStyle : ChartLineStyle
Remarks
To customize connector lines, create an instance of the ConnectorLineStyle class, and set it to the ConnectorLineSettings property of the CircularDataLabelSettings.
<chart:SfCircularChart>
<chart:PieSeries ItemsSource ="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True">
<chart:PieSeries.DataLabelSettings>
<chart:CircularDataLabelSettings LabelPosition="Outside" >
<chart:CircularDataLabelSettings.ConnectorLineSettings>
<chart:ConnectorLineStyle Stroke="Red" StrokeWidth="2" />
</chart:CircularDataLabelSettings.ConnectorLineSettings>
</chart:CircularDataLabelSettings>
</chart:PieSeries.DataLabelSettings>
</chart:PieSeries>
</chart:SfCircularChart>
Constructors
ConnectorLineStyle()
Declaration
public ConnectorLineStyle()
Fields
ConnectorTypeProperty
Identifies the ConnectorType bindable property.
Declaration
public static readonly BindableProperty ConnectorTypeProperty
Field Value
| Type |
|---|
| BindableProperty |
Properties
ConnectorType
Gets or sets a value that specifies 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="Product"
YBindingPath="SalesRate"
ShowDataLabels="True">
<chart:PieSeries.DataLabelSettings>
<chart:CircularDataLabelSettings LabelPlacement="Outer" ConnectorType="Curve"/>
</chart:PieSeries.DataLabelSettings>
</chart:PieSeries>
</chart:SfCircularChart>