Skip to main content

Module boxplot

Module boxplot 

Source
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§

BoxPlotState
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.
BoxPlotView
A box plot: named groups of raw samples.
Quartiles
Five-number summary + the 1.5·IQR whisker fences and the points beyond them.

Enums§

BoxPlotEffect
FC-8: the box plot does no I/O — an uninhabited effect.
BoxPlotMsg
FC-2 input surface. The box plot accepts one kind of input: the hovered box changing (hit-tested purely in BoxPlotView::render, applied in BoxPlotView::update).

Functions§

percentile_sorted
Linear-interpolated percentile of a sorted slice. p ∈ 0..=1.