Class
ChartSeriesLine

Configures the visual styling and appearance of lines in line chart series, controlling how data points are connected and displayed. Manages line colors, thickness, opacity, and rendering styles to create clear data trends and professional chart presentations for time-series and continuous data visualization.

Definition

Constructors

ChartSeriesLine()

Declaration

cs-api-definition
public ChartSeriesLine()

Properties

ChildContent

Declaration

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

Property Value

RenderFragment

Color

Sets the color of the series line connecting data points using any valid CSS color value. Accepts hex codes (#007ACC), RGB values (rgb(0, 122, 204)), named colors (blue, green), or HSL values. Line color should provide clear visual distinction between multiple series and maintain readability against chart backgrounds.

Declaration

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

Property Value

string

Opacity

Controls the transparency of the series line from 0.0 (completely transparent) to 1.0 (completely opaque). Use values like 0.7-0.9 for subtle transparency effects, or 1.0 for solid lines. Transparency can help when overlapping multiple series or creating layered visualizations.

Declaration

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

Property Value

double?

Style

Determines the line rendering style using ChartSeriesLineStyle values to optimize performance and visual quality. Choose between different rendering approaches based on chart complexity, data volume, and performance requirements for optimal user experience.

Declaration

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

Property Value

ChartSeriesLineStyle?

Width

Specifies the thickness of the series line in pixels. Use 1-2 pixels for subtle lines, 3-4 pixels for standard visibility, or 5+ pixels for emphasis. Line width affects chart readability and should be appropriate for the chart size and data density.

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>