ClassChartLegendItem
Configures the visual appearance and behavior of individual legend items in ChartLegend. Use this component to customize how series are represented in the legend, including marker styles, line appearance, area styling, and hover effects. Legend items help users identify and interact with different data series through visual indicators, colors, and symbols that match the corresponding chart elements. Children: ChartLegendItemArea, ChartLegendItemHighlight, ChartLegendItemLine, ChartLegendItemMarkers.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartLegendItem : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartLegendItem
Implements:
Inherited Members
Constructors
ChartLegendItem()
Declaration
public ChartLegendItem()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Type
Defines the visual representation type for legend items using ChartLegendItemType values. Choose from different marker styles to match your chart type: Rectangle for bar/column charts, Circle for scatter/bubble charts, Line for line charts, or Auto to automatically match the series type. This determines how the legend visually represents each data series.
Declaration
[Parameter]
public ChartLegendItemType? Type { get; set; }
Property Value
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