Class
ChartSeriesLabelsBorder

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

ChartSeriesLabelsBorder()

Declaration

cs-api-definition
public ChartSeriesLabelsBorder()

Properties

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

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.

Declaration

cs-api-definition
[Parameter]
public string Color { get; set; }

Property Value

string

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

cs-api-definition
[Parameter]
public DashType? DashType { get; set; }

Property Value

DashType?

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.

Declaration

cs-api-definition
[Parameter]
public double? Width { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>