ClassChartSeriesBorder
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSeriesBorder : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSeriesBorder
Implements:
Inherited Members
Constructors
ChartSeriesBorder()
Declaration
public ChartSeriesBorder()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Color
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.
DashType
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.
Declaration
[Parameter]
public DashType? DashType { get; set; }
Property Value
Opacity
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).
Declaration
[Parameter]
public double? Opacity { get; set; }
Property Value
Width
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.
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