Class FunnelDataLabelSettings
The FunnelDataLabelSettings class is used to customize the appearance of funnel chart data labels.
Inherited Members
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class FunnelDataLabelSettings : ChartDataLabelSettings, IPyramidDataLabelSettings
Remarks
To customize data labels, create an instance of the FunnelDataLabelSettings class, and set it to the DataLabelSettings property of the funnel chart.
ShowDataLabels
Data labels can be added to a chart by enabling the ShowDataLabels option.
<chart:SfFunnelChart ItemsSource ="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True"/>
Customization
To change the appearance of data labels, it offers LabelStyle options.
<chart:SfFunnelChart ItemsSource ="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"
ShowDataLabels="True">
<chart:SfFunnelChart.DataLabelSettings>
<chart:FunnelDataLabelSettings>
<chart:FunnelDataLabelSettings.LabelStyle>
<chart:ChartDataLabelStyle Background = "Red" FontSize="14" TextColor="Black" />
</chart:FunnelDataLabelSettings.LabelStyle>
</chart:FunnelDataLabelSettings>
</chart:SfFunnelChart.DataLabelSettings>
</chart:SfFunnelChart>
Constructors
FunnelDataLabelSettings()
Initializes a new instance of the FunnelDataLabelSettings.
Declaration
public FunnelDataLabelSettings()
Fields
ContextProperty
Identifies the Context bindable property.
Declaration
public static readonly BindableProperty ContextProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the Context bindable property determines the context of the funnel data label.
Properties
Context
Gets or sets an option that determines the content to be displayed in the data labels.
Declaration
public FunnelDataLabelContext Context { get; set; }
Property Value
Type | Description |
---|---|
FunnelDataLabelContext | Its accept the FunnelDataLabelContext values and its default value is YValue. |