Charts
TwDensityPlotChart
TwDensityPlotChart is a Blazor density plot that draws a smooth curve per group showing where its raw values concentrate.
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
TwDensityPlotChart takes groups of raw observations as ChartSample values and draws a smooth curve for each, tall where its values cluster. You pass the observations; the chart estimates the curve.Comparing groups
Several groups share one axis and one vertical scale, so a taller curve always means a tighter cluster. Each group gets a legend entry; click one to hide its curve and let the axis refit the rest.
Two peaks
A density plot shows shapes that a box plot hides. Here the same service has a fast cached path and a slow uncached one, which appear as two separate humps.
When to use
Use a density plot to compare the shape of a few distributions. Curves run a little past the lowest and highest observation so they can fall back to zero, and there is no vertical axis because density has no unit a reader needs. For many groups use TwRidgelinePlotChart.
Summary
Tooltips and the table view give the count, minimum, median and maximum of each group.