Expand description
Box plot — quartiles + whiskers + outliers, one box per named group.
The data→geometry math (Quartiles::from_sorted / Quartiles::compute)
is a pure function with its own tests; BoxPlotView is the themeable
[Facet] that paints it and emits the underlying data as CSV/JSON.
Structs§
- BoxPlot
State - Persistent, observable interaction state (FC-3). The box plot’s only mutable
state is which group box the pointer last hovered — an index into
BoxPlotView::summaries. Serialized so it round-trips headlessly. - BoxPlot
View - A box plot: named groups of raw samples.
- Quartiles
- Five-number summary + the 1.5·IQR whisker fences and the points beyond them.
Enums§
- BoxPlot
Effect - FC-8: the box plot does no I/O — an uninhabited effect.
- BoxPlot
Msg - FC-2 input surface. The box plot accepts one kind of input: the hovered box
changing (hit-tested purely in
BoxPlotView::render, applied inBoxPlotView::update).
Functions§
- percentile_
sorted - Linear-interpolated percentile of a sorted slice.
p ∈ 0..=1.