Reference lines
Since 0.1.0-alpha.22
The members for reference lines, and the types they use. Every member of
IzzyBlazor.Chart<TItem> is on the Chart API.
Parts (2)
Components written inside Chart, and the columns' members, which PropertyColumn, TemplateColumn and DynamicColumn share.
ChartReferenceLine
A line across a chart at a value, such as a target, or at an argument, such as a launch date, labeled in text beside it: <ChartReferenceLine Value="150_000" Label="Target" />. With Statistic and Series, the value is the series' average or median. The line is dashed, so it reads apart from the series.
Valuedouble?The value the line is drawn at, on the value axis.
Argumentobject?The argument the line is drawn at, across the argument axis: a name, number or date, such as a launch day.
ValueAxisstring? (computed)Labelstring? (computed)The line's label, such as "Target". Defaults to its value (or the statistic's name).
LabelAlignChartAlign?Where the label sits along the line. On a line across it sits just above the line, at the left by default; on an upright line it sits on the line, at the top by default. ChartAlign.Start is the left or the top, ChartAlign.Center the middle, ChartAlign.End the right or the bottom.
ChartReferenceBand
A shaded range across a chart, labeled in text inside it: between two values with From and To, such as <ChartReferenceBand From="120_000" To="150_000" Label="Target range" />, or between two arguments with ArgumentFrom and ArgumentTo, such as <ChartReferenceBand ArgumentFrom="@("Nov")" ArgumentTo="@("Dec")" Label="Holiday season" />. Its edges are drawn, so it reads apart from the grid.
Fromdouble?Where a band of values starts, on the value axis.
Todouble?Where a band of values ends.
ArgumentFromobject?Where a band of arguments starts: a name, number or date.
ArgumentToobject?Where a band of arguments ends. On names, the band covers both ends' bands.
ValueAxisstring? (computed)Labelstring?The band's label, such as "Holiday season".
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. |
ChartStatistic
enumA value worked out from a series, for a ChartReferenceLine.
| Value | Description |
|---|---|
Average | The mean of the series' values. |
Median | The middle value of the series' values. |