CategoricalAxis
Represents a chart axis that plots one discrete category slot per data point, in source order, rather than positioning points along a continuous numeric or date-time scale. Use this axis type for bar, column, and line charts whose horizontal values are labels (or dates treated as labels) instead of measurable quantities.
Definition
Namespace:Telerik.Maui.Controls.Charts
Assembly:Telerik.Maui.Controls.dll
Syntax:
public sealed class CategoricalAxis : ChartAxis
Inheritance: objectChartAxisCategoricalAxis
Inherited Members
Constructors
public CategoricalAxis()
Fields
CategoryLabelFormatProperty
BindableProperty
Identifies the CategoryLabelFormat bindable property.
public static readonly BindableProperty CategoryLabelFormatProperty
CategorySelectorProperty
BindableProperty
Identifies the CategorySelector bindable property.
public static readonly BindableProperty CategorySelectorProperty
GapLengthProperty
BindableProperty
Identifies the GapLength bindable property.
public static readonly BindableProperty GapLengthProperty
Properties
Gets or sets the .NET custom or standard format string used to render category labels from the value produced by CategorySelector. Set to null (the default) to render labels using the category value's ToString() method.
public string? CategoryLabelFormat { get; set; }
Gets or sets the function used to derive the category value for each bound value. The chart engine invokes this function once per bound value to determine the value that identifies its category slot, passing both the resolved binding value and the source item via CategorySelectorContext. Set to null (the default) to use each bound value as its own category value.
public Func<CategorySelectorContext, object>? CategorySelector { get; set; }