Supplies information about a legend item to ItemTemplate.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class LegendItemContextSupplies information about a legend item to ItemTemplate.
public LegendItemContext()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).
public string Color { get; set; }
| Type | Description |
|---|---|
| string | 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). |
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.
public object Data { get; set; }
| Type | Description |
|---|---|
| object | 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. |
Gets the series which the legend item belongs to.
public IChartSeries Series { get; set; }
| Type | Description |
|---|---|
| IChartSeries | Gets the series which the legend item belongs to. |
Gets the text which the legend item displays by default - the series title or the category of the data item.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | Gets the text which the legend item displays by default - the series title or the category of the data item. |