Class
ChartSeriesLegendItem

Configures the display and behavior of individual series items within the chart legend, controlling how each data series is represented in legend components. Manages legend item markers, highlighting effects, and visual styling to provide clear series identification and interactive feedback for users. Children: ChartSeriesLegendItemHighlight, ChartSeriesLegendItemMarkers.

Definition

Constructors

ChartSeriesLegendItem()

Declaration

cs-api-definition
public ChartSeriesLegendItem()

Properties

ChildContent

Declaration

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

Property Value

RenderFragment

Type

Specifies the visual representation type for the legend item using ChartLegendItemType values. Determines how the series is displayed in the legend, such as with markers, lines, or other visual indicators that match the series presentation style in the chart.

Declaration

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

Property Value

ChartLegendItemType?

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>