Charts
TwAreaChart
TwAreaChart is a Blazor area chart: a line chart with the space beneath filled. Supports stacked areas and smooth or stepped curves.
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
TwAreaChart is a line chart with the space under each line filled with a light wash, which emphasises volume. The scale always includes zero so the filled area stays honest.Stacked
Set
Stacked to pile the series on top of each other, showing how they add up to a total over time. Missing and negative values count as zero when stacked.Curves
Curve works as it does on a line chart: ChartCurve.Smooth for a spline area and ChartCurve.Step for a stepped one.RAZOR
<TwChart Title="Monthly visitors">
<TwAreaChart Categories="@_months" Series="@_organic" Curve="ChartCurve.Smooth" />
</TwChart>Overlapping series
Without stacking, the washes overlap so every line stays visible. Past two or three series, stack them or use TwSmallMultiplesChart instead.
RAZOR
<TwChart Title="Monthly visitors by channel">
<TwAreaChart Categories="@_months" Series="@_visitors" />
</TwChart>Summary
Tooltips and the table view give the value of every series for each category.