Histogram
The shape of a distribution. Choosing coarser or finer bins retargets the same bars, and the median and p95 markers slide to their values.
Median 188 ms · p95 442 ms · 600 values
| Range | Count |
|---|---|
| 40–73 ms | 2 |
| 73–105 ms | 6 |
| 105–138 ms | 49 |
| 138–170 ms | 143 |
| 170–203 ms | 176 |
| 203–235 ms | 102 |
| 235–268 ms | 34 |
| 268–301 ms | 3 |
| 301–333 ms | 4 |
| 333–366 ms | 11 |
| 366–398 ms | 20 |
| 398–431 ms | 16 |
| 431–463 ms | 15 |
| 463–496 ms | 10 |
| 496–528 ms | 8 |
| 528–561 ms | 1 |
When to use
- Response times, order values, session lengths.
- Checking whether a mean hides two groups.
When not to use
- A few categories; use the bar chart.
- Comparing several distributions; use the box plot.
Installation
pnpm dlx shadcn@latest add @caliper/histogram
Adds its 8 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
binValues
0 props
No props of its own; it accepts the native props of its root element.
Histogram
13 props
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
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/histogram.mdThe index of every part is at /llms.txt.