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

Configures the border styling for chart series data point labels to enhance label visibility and create visual definition. Controls border color, line patterns, and thickness around label text backgrounds, improving readability especially when labels overlap with chart elements or need visual emphasis.

Definition

Constructors

C#
public ChartSeriesLabelsBorder()

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 for series data point labels using any valid CSS color value. Accepts hex codes (#666666), RGB values (rgb(102, 102, 102)), named colors (gray, black), or HSL values. Use contrasting colors to create clear label definition and improve text readability against chart backgrounds.

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

Defines the line pattern style for label borders using DashType values. Choose from "solid" for continuous borders, "dash" for dashed outlines, "dot" for dotted patterns, or other combinations to create distinctive label styling that matches chart design themes.

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

Specifies the thickness of label borders in pixels. Use 1-2 pixels for subtle label definition, 3-4 pixels for prominent borders, or 0 to remove borders completely. Border width should complement label size and chart scale for optimal visual balance.

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