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