Charts
TwWaterfallChart
TwWaterfallChart is a Blazor waterfall chart: floating columns that show how increases and decreases build up to a total.
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
TwWaterfallChart shows how a series of changes builds up to a result. Each ChartValue in Data is a change, positive or negative, and each column floats from where the previous one ended. A total column is added for you. Direction is shown by color and named in the legend and tooltips, so it never depends on color alone.- Increase
- Decrease
- Total
Value labels
Set
ShowValues to label each column with its signed change.- Increase
- Decrease
- Total
RAZOR
<TwChart Title="Profit bridge">
<TwWaterfallChart Data="@_bridge" ShowValues="true" />
</TwChart>Total and labels
Set
ShowTotal to false to leave out the final column. TotalLabel, IncreaseLabel and DecreaseLabel rename the legend entries.- Income
- Cost
- Profit
RAZOR
<TwChart Title="Profit bridge">
<TwWaterfallChart Data="@_bridge" TotalLabel="Profit" IncreaseLabel="Income" DecreaseLabel="Cost" />
</TwChart>Summary
Tooltips and the table view give the change at each step. Tooltips also give the running total.