Class ChartDataLabel
ChartDataLabel is used to customize the appearance of the data label.
Implements
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class ChartDataLabel : INotifyPropertyChanged
Constructors
ChartDataLabel()
Initializes a new instance of the ChartDataLabel class.
Declaration
public ChartDataLabel()
Properties
Background
Returns the background color of the data label.
Declaration
public Brush Background { get; }
Property Value
| Type |
|---|
| Brush |
Index
Returns the index of the data label.
Declaration
public int Index { get; }
Property Value
| Type |
|---|
| int |
Item
Gets the underlying item of the data label.
Declaration
public object? Item { get; }
Property Value
| Type |
|---|
| object |
Label
Gets or sets the data label content.
Declaration
public string Label { get; set; }
Property Value
| Type |
|---|
| string |
XPosition
Returns the x-position of data label placement.
Declaration
public double XPosition { get; }
Property Value
| Type |
|---|
| double |
YPosition
Returns the y-position of data label placement.
Declaration
public double YPosition { get; }
Property Value
| Type |
|---|
| double |
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
| Type |
|---|
| PropertyChangedEventHandler |