ClassChartCategoryAxisTitle
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisTitle : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisTitle
Implements:
Inherited Members
Constructors
ChartCategoryAxisTitle()
Declaration
public ChartCategoryAxisTitle()
Properties
Background
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.
Declaration
[Parameter]
public string Background { get; set; }
Property Value
ChildContent
The content of the ChartCategoryAxisTitle component. Children: ChartCategoryAxisTitleBorder, ChartCategoryAxisTitleMargin, ChartCategoryAxisTitlePadding.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Color
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.
Font
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.
Position
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.
Declaration
[Parameter]
public ChartAxisTitlePosition? Position { get; set; }
Property Value
Rotation
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.
Declaration
[Parameter]
public double? Rotation { get; set; }
Property Value
Text
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.
Visible
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.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns