Legend
Since 0.1.0-alpha.22
The members for legend, and the types they use. Every member of
IzzyBlazor.Chart<TItem> is on the Chart API.
Properties (2)
LegendChartLegend = ChartLegend.AutoThe legend and where it goes: above the chart, under the title, when there are two series or more, by default, so its keys are read before the data; ChartLegend.Top, ChartLegend.Bottom, ChartLegend.Start or ChartLegend.End to always show it there, or ChartLegend.None. Beside the chart, it moves above or below under 30rem.
LegendAlignChartAlign = ChartAlign.StartWhere the legend sits along its edge: at the start, by default (the left above or below the chart, the top beside it); ChartAlign.Center or ChartAlign.End.
Types (2)
ChartAlign
enumWhere a chart's title or legend sits along its edge: for a title or a legend above or below, left, center or right (in a left-to-right page); for a legend beside the chart, top, middle or bottom.
| Value | Description |
|---|---|
Start | At the start: the left (in a left-to-right page), or the top beside the chart. |
Center | Centered. |
End | At the end: the right (in a left-to-right page), or the bottom beside the chart. |
ChartLegend
enumWhether a chart has a legend, and where it goes.
| Value | Description |
|---|---|
Auto | A Chart's legend above it, under the title, when there are two series or more (a single series is named by the chart's title); a PieChart's beside the circle when there's room, and below it otherwise. |
Top | Above the chart, even for one series. |
Bottom | Below the chart, even for one series. |
Start | Beside the chart on the start side (the left, in a left-to-right page), in a column; below 30rem wide, above it instead. |
End | Beside the chart on the end side (the right, in a left-to-right page), in a column; below 30rem wide, below it instead. |
None | No legend. |