LegendItemContext Class

Supplies information about a legend item to ItemTemplate.

Inheritance

Object

LegendItemContext

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class LegendItemContext

Constructors

LegendItemContextLink to this section

Supplies information about a legend item to ItemTemplate.

Declaration
public LegendItemContext()

Properties

ColorLink to this section

Gets the color of the legend item marker. It is null when the color comes from the theme and is not set explicitly (e.g. via Fills).

Declaration
public string Color { get; set; }
Property Value
Type Description
stringGets the color of the legend item marker. It is null when the color comes from the theme and is not set explicitly (e.g. via Fills).

DataLink to this section

Gets the data of the legend item. Series that render a legend item per data item (pie, donut, funnel, pyramid) provide the data item. Heatmap and contour series with a color range provide the SeriesColorRange. Other series provide their Data.

Declaration
public object Data { get; set; }
Property Value
Type Description
objectGets the data of the legend item. Series that render a legend item per data item (pie, donut, funnel, pyramid) provide the data item. Heatmap and contour series with a color range provide the SeriesColorRange. Other series provide their Data.

SeriesLink to this section

Gets the series which the legend item belongs to.

Declaration
public IChartSeries Series { get; set; }
Property Value
Type Description
IChartSeriesGets the series which the legend item belongs to.

TextLink to this section

Gets the text which the legend item displays by default - the series title or the category of the data item.

Declaration
public string Text { get; set; }
Property Value
Type Description
stringGets the text which the legend item displays by default - the series title or the category of the data item.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙