Charts
TwBeeswarmChart
TwBeeswarmChart is a Blazor beeswarm chart that draws every observation as a dot, nudged sideways so none overlap.
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
TwBeeswarmChart draws every value in a ChartSample as a dot along the value axis and moves each one sideways just far enough to clear its neighbors. The swarm widens where values cluster, so you see both the spread and how many values sit at each level.Clusters and outliers
Because no dot is hidden behind another, repeated values and stragglers are both easy to spot. Here most builds finish in about four minutes, with a handful of slow ones on the main branch.
Horizontal
Set
Horizontal to list the groups down the side with values running left to right.RAZOR
<TwChart Title="Customer satisfaction by plan">
<TwBeeswarmChart Samples="@_plans" Horizontal="true" />
</TwChart>When to use
A beeswarm suits tens of values per group. A cluster too large for its group's slot overlaps at the edges, so for hundreds of values prefer TwViolinPlotChart or TwBoxPlotChart.
Summary
Tooltips and the table view give the count, minimum, lower quartile, median, upper quartile and maximum of each group.