New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Constructors

C#
public CategoricalAxis()

Fields

Identifies the CategoryLabelFormat bindable property.

C#
public static readonly BindableProperty CategoryLabelFormatProperty

CategorySelectorProperty

BindableProperty

Identifies the CategorySelector bindable property.

C#
public static readonly BindableProperty CategorySelectorProperty

GapLengthProperty

BindableProperty

Identifies the GapLength bindable property.

C#
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.

C#
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.

C#
public Func<CategorySelectorContext, object>? CategorySelector { get; set; }

Gets or sets the gap between adjacent category slots as a fraction of the slot width. The value is in the [0, 1] range; defaults to 0.3.

C#
public double GapLength { get; set; }