Class
ChartSeriesBorder

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

ChartSeriesBorder()

Declaration

cs-api-definition
public ChartSeriesBorder()

Properties

ChildContent

Declaration

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

Property Value

RenderFragment

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.

Declaration

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

Property Value

string

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

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

Property Value

DashType?

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

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

Property Value

double?

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.

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>