New to Telerik UI for BlazorStart a free 30-day trial

Configures the title displayed for a category axis in ChartCategoryAxis. Use this component to provide descriptive text that explains what the axis represents, such as "Time Period", "Product Categories", "Geographic Regions", or any contextual information that helps users understand the data being visualized. Titles improve chart accessibility and comprehension by clearly labeling the axis scale and data context. Children: ChartCategoryAxisTitleBorder, ChartCategoryAxisTitleMargin, ChartCategoryAxisTitlePadding.

Definition

Constructors

C#
public ChartCategoryAxisTitle()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

Sets the background color behind the category axis title. Accepts any valid CSS color including hex codes (#F8F9FA), RGB values (rgb(248,249,250)), named colors (whitesmoke), or HSL values. Use background colors to improve title readability against complex chart backgrounds or to create visual emphasis for important axis information.

C#
[Parameter]
public string Background { get; set; }

The content of the ChartCategoryAxisTitle component. Children: ChartCategoryAxisTitleBorder, ChartCategoryAxisTitleMargin, ChartCategoryAxisTitlePadding.

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Sets the text color of the category axis title. Accepts any valid CSS color including hex codes (#212529), RGB values (rgb(33,37,41)), named colors (darkslategray), or HSL values. Choose colors that provide good contrast with the Background and chart theme for optimal readability and professional appearance.

C#
[Parameter]
public string Color { get; set; }

Defines the font styling for the category axis title using CSS font notation. Specify properties like size, weight, and family in a single string, for example: "bold 16px Arial", "italic 14px 'Times New Roman'", or "normal 18px sans-serif". Title fonts are typically larger and bolder than axis labels to establish visual hierarchy.

C#
[Parameter]
public string Font { get; set; }

Controls the positioning of the category axis title using ChartAxisTitlePosition values. Determines where the title appears relative to the axis: typically above or below for horizontal category axes. This affects the overall chart layout and ensures the title doesn't interfere with data visualization or other chart elements.

C#
[Parameter]
public ChartAxisTitlePosition? Position { get; set; }

Sets the rotation angle for the category axis title in degrees. Use positive values for clockwise rotation, negative values for counter-clockwise rotation, or 0 (default) for no rotation. Common angles include 90 degrees for vertical titles on horizontal axes, or custom angles for artistic layouts.

C#
[Parameter]
public double? Rotation { get; set; }

Specifies the text content displayed as the category axis title. Use descriptive text that explains what the axis represents, such as "Time Period", "Product Categories", "Months", or "Geographic Regions". Clear, informative titles help users understand the data context and improve chart accessibility.

C#
[Parameter]
public string Text { get; set; }

Controls whether the category axis title is displayed. Set to true (default) to show the title with its descriptive text, or false to hide it for cleaner chart appearance. Visible titles improve chart comprehension by providing context about the data being displayed on the axis.

C#
[Parameter]
public bool? Visible { get; set; }