Small multiples
A grid of the same chart for different groups.
| Period | Platform | Web | Mobile | Data | Support | Sales | Design | Finance |
|---|---|---|---|---|---|---|---|---|
| Jan | 59 | 56 | 53 | 62 | 58 | 50 | 59 | 55 |
| Feb | 64 | 61 | 59 | 68 | 66 | 54 | 51 | 49 |
| Mar | 63 | 57 | 63 | 69 | 63 | 54 | 48 | 42 |
| Apr | 68 | 60 | 63 | 66 | 70 | 53 | 45 | 36 |
| May | 70 | 56 | 65 | 74 | 71 | 55 | 40 | 37 |
| Jun | 70 | 54 | 63 | 71 | 68 | 59 | 43 | 40 |
| Jul | 65 | 56 | 59 | 74 | 65 | 58 | 37 | 40 |
| Aug | 69 | 61 | 65 | 82 | 74 | 50 | 30 | 35 |
| Sep | 65 | 64 | 62 | 84 | 82 | 47 | 33 | 31 |
| Oct | 70 | 65 | 59 | 90 | 85 | 42 | 37 | 31 |
| Nov | 71 | 66 | 61 | 92 | 87 | 39 | 34 | 29 |
| Dec | 75 | 70 | 64 | 95 | 90 | 37 | 32 | 27 |
When to use
- Comparing shapes across many groups.
When not to use
- A single series.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/small-multiples
Adds its 6 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
SmallMultiples
5 props
PropTypeDefault
label *string—
series *readonly MultipleSeries[]—
xLabels *readonly string[]—
format((n: number) => string)(n) => n.toLocaleString("en-US")
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes img semantics, with aria-label, aria-pressed and aria-hidden kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/small-multiples.mdThe index of every part is at /llms.txt.