Charts
TwHorizonChart
TwHorizonChart is a Blazor horizon chart that folds each series into a compact row of layered bands, fitting many series into little height.
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
TwHorizonChart gives each series its own short row. Values are cut into bands and the bands are layered, so a strong value shows as a darker color instead of a taller mark. Series are named on the axis.Bands
BandCount sets how many bands the values are cut into, from 1 to 6. More bands show finer differences in the same height but are harder to tell apart; three is a good default.RAZOR
<TwChart Title="Requests by service" Description="Five bands">
<TwHorizonChart Categories="@_hours" Series="@_services" BandCount="5" CategoryHeader="Hour" />
</TwChart>Above and below zero
Negative values are drawn in the color for an unfavourable change, growing from the same baseline, so a row shows at a glance when a series was up and when it was down.
When to use
Use a horizon chart to fit many series into little height. Every row shares one scale, so the same darkness means the same magnitude in each. For a few series, TwLineChart is easier to read.
Summary
Tooltips and the table view give the value of every series for each category.