ClassChartLegendItemMarkers
Configures the appearance of legend item markers in ChartLegendItem. Use this component to customize the visual symbols that represent different data series in the legend, including marker shapes, colors, borders, and visibility. Markers provide essential visual identification that helps users connect legend items to their corresponding chart data elements. Children: ChartLegendItemMarkersBorder.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartLegendItemMarkers : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartLegendItemMarkers
Implements:
Inherited Members
Constructors
ChartLegendItemMarkers()
Declaration
public ChartLegendItemMarkers()
Properties
Background
Sets the background color for legend item markers. Accepts any valid CSS color including hex codes (#4CAF50), RGB values (rgb(76,175,80)), named colors (green), or HSL values. Markers use this color to represent data series in the legend, providing visual identification that helps users connect legend items to their corresponding chart elements.
Declaration
[Parameter]
public string Background { get; set; }
Property Value
BorderRadius
Sets the corner radius for rounded rectangle markers in pixels when Type is set to RoundedRect. Use values like 2-8 pixels to create softly rounded corners, or higher values for more pronounced rounding. This property only affects markers with rounded rectangle shapes and is ignored for other marker types.
Declaration
[Parameter]
public double? BorderRadius { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Type
Defines the shape of legend markers using ChartSeriesMarkersType values. Choose from Circle for round markers, Square for rectangular markers, Triangle for triangular markers, Cross for cross-shaped markers, or other available shapes. The marker type should match or complement the corresponding chart series for visual consistency.
Declaration
[Parameter]
public ChartSeriesMarkersType? Type { get; set; }
Property Value
Visible
Controls whether legend item markers are displayed. Set to true (default behavior follows series options) to show markers that help users identify different data series, or false to hide markers for a text-only legend. Markers provide important visual cues for distinguishing between multiple series.
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