ChartLegendItem
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
public ChartLegendItem()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
[Parameter]
public RenderFragment ChildContent { get; set; }
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.
[Parameter]
public ChartLegendItemType? Type { get; set; }