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