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

Configures border styling around chart X-axis labels for enhanced visual presentation and readability. Provides control over border appearance including color, style, and thickness to create professional label designs that stand out from chart backgrounds. Use this component to add visual boundaries around X-axis labels, improve contrast, or highlight important category information.

Definition

Constructors

C#
public ChartXAxisLabelsBorder()

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 color of the border around chart X-axis labels. Accepts any valid CSS color value including hex codes (#dddddd), RGB values (rgb(221,221,221)), or color names (lightgray). Use this to create visual definition around category labels and ensure they stand out against chart backgrounds for better readability. Example: Set to "#e0e0e0" for subtle gray borders around labels, or "#007acc" to match brand colors and highlight important categories.

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

Sets the dash pattern style for the X-axis label borders. Controls the visual appearance of label borders, allowing for solid lines or various dashed patterns to create different design effects. Use this to create distinctive border styles that complement your chart's visual design or differentiate label importance levels. Accepts values from the DashType enumeration including solid, dash, dot, and various dash-dot combinations.

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

Sets the thickness of the border around X-axis labels in pixels. Controls how prominent the label borders appear, affecting the overall visual emphasis and readability of category information. Use this to create subtle outlines with thin borders or bold frames with thicker borders based on your design requirements. Example: Set to 1 for fine label borders, 2 for standard emphasis, or 0 to hide borders completely.

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