Skip to content
caliper ui pro docs

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.

Pro
p50 latency by region
FrankfurtVirginiaOregonSingaporeSão Paulo

p50 latency by region
GroupMinQ1MedianQ3MaxOutliers
Frankfurt78127.5146.5183.2524511
Virginia105154.5171.5210.2524911
Oregon119174205249.2536210
Singapore98196226264.2529211
São Paulo147212.75260.5304.2534812

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

terminal
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
PropTypeDefault
label *string—
groups *readonly BoxGroup[]—
unitstring""
formatValue((value: number) => string)numberText
view"points" | "box""box"
loadingboolean—
errorstring—
classNamestring—

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.md

The index of every part is at /llms.txt.

More in Distribution charts