Data cube
Three dimensions in one object: region by product by quarter. Pick which dimension is depth, step through its layers, and read the layer you are on as an ordinary table beside it, with the peak in bold.
| Q3 | Free | Team | Pro | Enterprise |
|---|---|---|---|---|
| EMEA | 68k | 93k | 46k | 71k |
| AMER | 58k | 83k | 108k | 133k (peak) |
| APAC | 76k | 101k | 54k | 79k |
| LATAM | 44k | 69k | 94k | 119k |
Layer 3 of 4 · Quarter Q3 · Region by Product · peak 133k
When to use
- Data that really has three dimensions and people switch which one they slice by.
- Showing that a table is one slice of something larger.
When not to use
- Two dimensions; use a heatmap or a pivot table.
- Reading exact values from the picture. The table is for that.
Installation
pnpm dlx shadcn@latest add @caliper/data-cube
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
DataCube
16 props
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-hidden, aria-label, aria-valuetext and aria-live 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/data-cube.mdThe index of every part is at /llms.txt.