ClassChartSeriesLegendItemMarkers
Configures the visual appearance and styling of markers for individual series items within chart legends. Controls marker colors, shapes, borders, and visibility to provide clear series identification and maintain visual consistency between legend items and chart data series. Children: ChartSeriesLegendItemMarkersBorder.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSeriesLegendItemMarkers : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSeriesLegendItemMarkers
Implements:
Inherited Members
Constructors
ChartSeriesLegendItemMarkers()
Declaration
public ChartSeriesLegendItemMarkers()
Properties
Background
Sets the background color for legend item markers using any valid CSS color value. Accepts hex codes (#2196F3), RGB values (rgb(33, 150, 243)), named colors (blue, green), or HSL values. Typically matches or complements the series color to provide clear visual connection between legend and chart data.
Declaration
[Parameter]
public string Background { get; set; }
Property Value
BorderRadius
Sets the border radius for legend markers in pixels when using rounded rectangle marker types. Values like 2-6 pixels create subtle rounded corners, while larger values produce more pronounced rounding effects for marker appearance in legend layouts.
Declaration
[Parameter]
public double? BorderRadius { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Type
Specifies the shape type for legend markers using ChartSeriesMarkersType values. Choose from circle, square, triangle, diamond, or other shapes to match series styling or create distinctive visual identification for different data series in the legend.
Declaration
[Parameter]
public ChartSeriesMarkersType? Type { get; set; }
Property Value
Visible
Controls the visibility of legend item markers. Set to true to display markers next to series names, false to hide markers and show only text, or leave null to inherit from series marker settings. Visible markers enhance series identification in multi-series charts.
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