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

Configures the border styling for chart series elements such as bars, columns, areas, or other series shapes. Controls border appearance including color, line patterns, opacity, and thickness to enhance series visibility and create distinctive visual separation between data elements.

Definition

Constructors

C#
public ChartSeriesBorder()

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 elements using any valid CSS color value. Accepts hex codes (#FF6B35), RGB values (rgb(255, 107, 53)), named colors (orange, blue), or HSL values. When not specified, defaults to the current series color. Use contrasting colors to create clear visual definition around series shapes.

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

Defines the line pattern style for series borders using DashType values. Choose from "solid" for continuous borders, "dash" for dashed lines, "dot" for dotted patterns, "dashDot" for alternating patterns, and other combinations to create distinctive series styling and visual variety.

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

Controls the transparency of the series border from 0.0 (completely transparent) to 1.0 (completely opaque). Use values like 0.3-0.7 for subtle border effects, 0.8-1.0 for prominent borders, or lower values for blended visual effects. Default is opaque (1.0).

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

Specifies the thickness of the series border in pixels. Use 1-2 pixels for subtle borders, 3-5 pixels for prominent definition, or 0 to remove borders completely. Border width affects the overall appearance and should complement the series size and chart design.

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