Charts
TwSlopeChart
TwSlopeChart is a Blazor slope chart: a labelled line per series between two points in time, showing the direction and size of each change.
Last updated
Please be aware this component is new, may have bugs and/or be subject to change. Please report any bugs at
https://github.com/twblazor/twblazor/issues.
Basic usage
TwSlopeChart draws a straight line per series between two points in time and labels both ends, so the direction and size of each change is read from the slope. Use two categories for the classic form.More than two points
Extra categories add intermediate points. The first is labelled with the series name and value, and the last with its value.
Formatting
ValueFormat applies to the end labels as well as the tooltips and table view.RAZOR
<TwChart Title="Market share">
<TwSlopeChart Categories="@_years" Series="@_share" ValueFormat="0\%" />
</TwChart>Summary
Tooltips and the table view give the value of every series for each category.