Box plot
Distributions side by side as five-number summaries with outliers. Switching to every value spreads the points out from the median on the same axis.
| Group | Min | Q1 | Median | Q3 | Max | Outliers |
|---|---|---|---|---|---|---|
| Frankfurt | 78 | 127.5 | 146.5 | 183.25 | 245 | 11 |
| Virginia | 105 | 154.5 | 171.5 | 210.25 | 249 | 11 |
| Oregon | 119 | 174 | 205 | 249.25 | 362 | 10 |
| Singapore | 98 | 196 | 226 | 264.25 | 292 | 11 |
| São Paulo | 147 | 212.75 | 260.5 | 304.25 | 348 | 12 |
When to use
- Latency by region, deal size by segment, scores by cohort.
- Comparing spread as well as the middle.
When not to use
- Readers new to quartiles; start with the histogram.
- Tiny groups; with under ten values show the points.
Installation
pnpm dlx shadcn@latest add @caliper/box-plot
Adds its 7 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
boxSummary
0 props
No props of its own; it accepts the native props of its root element.
BoxPlot
8 props
Keyboard
- ↓
- Moves to the next item or value.
- →
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
- ←
- Moves to the previous item or value.
- Escape
- Closes or cancels, then returns focus to where it came from.
- Home
- Jumps to the first item or the minimum.
- End
- Jumps to the last item or the maximum.
Accessibility
It exposes group and status semantics, with aria-label, aria-busy and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/box-plot.mdThe index of every part is at /llms.txt.