Marimekko chart
ProA market map: columns as wide as their share, segments stacked by their share within, so area is share of the whole. Switch period and every block moves to its new size.
pnpm dlx shadcn@latest add @caliper/marimekko-chart| Column | Starter | Team | Enterprise | Total |
|---|---|---|---|---|
| North America | 120 | 340 | 832 | 1292 |
| EMEA | 90 | 416 | 300 | 806 |
| APAC | 112 | 110 | 144 | 366 |
| LatAm | 40 | 50 | 32 | 122 |
When to use #
Use it for
- Revenue by region and plan, market by segment and vendor.
- Explaining where the money is in one picture.
Skip it when
- Exact comparisons between blocks; keep the table.
- Many tiny columns.
Installation #
pnpm dlx shadcn@latest add @caliper/marimekko-chart
Adds its 4 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.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source.
import { MarimekkoChart } from "@/components/ui/marimekko-chart"
The worked example comes with Pro
The 21-line example behind the preview opens here with a Pro or Team licence.
API reference #
MarimekkoChart
component
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.
Motion #
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.