Charts
TwStreamGraphChart
TwStreamGraphChart is a Blazor stream graph: stacked layers that flow around a central line to show how the make-up of a total shifts over time.
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
TwStreamGraphChart stacks one smooth layer per series around the middle of the plot instead of on a baseline. The thickness of a layer is its value, and the outline of the whole stream is the total.Rise and fall
A stream graph is at its best when series come and go. Here each genre swells and fades in turn, which a stacked area chart would bury under a climbing baseline.
Hiding layers
Click a legend entry to remove its layer; the rest close up around the middle. Set
InteractiveLegend to false to keep every layer in place.- Search
- Direct
- Social
RAZOR
<TwChart Title="Visits by source">
<TwStreamGraphChart Categories="@_months" Series="@_sources" InteractiveLegend="false" Height="ChartHeight.Small" />
</TwChart>When to use
Use a stream graph for the changing make-up of a total. Only thickness carries meaning; a layer's height on the plot does not. Missing and negative values count as zero. When exact totals matter, use a stacked TwAreaChart.
Summary
Tooltips and the table view give the value of every series for each category.