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

Configures the border appearance around category axis labels in ChartCategoryAxisLabels. Use this component to add visual emphasis to category labels by defining border color, style pattern, and thickness. Borders can improve label readability against complex chart backgrounds or create visual hierarchy in multi-axis charts. Combine with padding and margin settings for optimal label presentation.

Definition

Constructors

C#
public ChartCategoryAxisLabelsBorder()

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

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

Sets the border color around category axis labels. Accepts any valid CSS color value including hex codes (#FF0000), RGB values (rgb(255,0,0)), named colors (red), or HSL values. Use this to create visual emphasis or improve label readability against complex chart backgrounds.

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

Defines the line style pattern for the category axis label border. Choose from predefined patterns to create different visual effects: Solid creates continuous borders, Dash produces dashed outlines, Dot creates dotted borders, DashDot alternates dashes and dots, LongDash uses longer dash segments, LongDashDot combines long dashes with dots, and LongDashDotDot creates complex patterns with long dashes followed by two dots.

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

Controls the thickness of the category axis label border in pixels. Set to 0 (default) to hide the border completely, or use positive values like 1-3 pixels for subtle outlines, or larger values for prominent borders. Combine with Color to create custom label styling that enhances readability.

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