Class ChartMultiLevelLabel
Represents a hierarchical axis band label that spans a range of axis values.
Inheritance
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class ChartMultiLevelLabel : BindableObject
Remarks
The ChartMultiLevelLabel class is used to create hierarchical groupings of axis labels. Each label is defined by:
- Start: The starting value/index in the axis range (supports numeric, datetime, indexed, and logarithmic values)
- End: The ending value/index in the axis range (supports numeric, datetime, indexed, and logarithmic values)
- Text: The caption text for the label
- Level: The hierarchical level (0-based) for organizing multiple label bands
This model is designed as a lightweight data holder containing only the essential properties. Multi-level labels are collected in the MultiLevelLabels collection and are rendered by the CartesianAxisMultilevelLabelRenderer.
Constructors
ChartMultiLevelLabel()
Declaration
public ChartMultiLevelLabel()
Fields
EndProperty
Identifies the End bindable property.
Declaration
public static readonly BindableProperty EndProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
LevelProperty
Identifies the Level bindable property.
Declaration
public static readonly BindableProperty LevelProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
StartProperty
Identifies the Start bindable property.
Declaration
public static readonly BindableProperty StartProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TextProperty
Identifies the Text bindable property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
End
Gets or sets the end value/index in the axis range. Accepts all axis value types including numeric, datetime, indexed, and logarithmic values.
Declaration
public object End { get; set; }
Property Value
| Type |
|---|
| System.Object |
Level
Gets or sets the hierarchical level (0-based) for this label. Level 0 is the topmost level. Default value is 0.
Declaration
public int Level { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Start
Gets or sets the start value/index in the axis range. Accepts all axis value types including numeric, datetime, indexed, and logarithmic values.
Declaration
public object Start { get; set; }
Property Value
| Type |
|---|
| System.Object |
Text
Gets or sets the caption text for the multi-level label band.
Declaration
public string Text { get; set; }
Property Value
| Type |
|---|
| System.String |