Charts
TwRidgelinePlotChart
TwRidgelinePlotChart is a Blazor ridgeline plot that gives each group its own row and density curve, for comparing many distributions.
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
TwRidgelinePlotChart draws one density curve per ChartSample, each on its own row with its name on the axis. Where a density plot overlays its curves, a ridgeline keeps them apart, so it copes with many more groups.Many groups
Order the groups so a drift is easy to follow. Here the daily temperature shifts up and back down across the year. A larger
Height gives each ridge more room.Side by side
Groups are listed top to bottom by default. Set
Horizontal to false to stand the ridges side by side with values running up the plot.RAZOR
<TwChart Title="Delivery time by month">
<TwRidgelinePlotChart Samples="@_deliveries" Horizontal="false" />
</TwChart>When to use
Use a ridgeline plot to compare the shape of many distributions. Each ridge is scaled to the height of its own row, so compare where the ridges sit and how wide they are, not how tall. For two or three groups, TwDensityPlotChart puts them on one scale.
Summary
Tooltips and the table view give the count, minimum, lower quartile, median, upper quartile and maximum of each group.