caliper uidocs

Marimekko chart

Pro

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

Installs components/ui/marimekko-chart.tsxDepends on d3-shapeMotion none in component source
pnpm dlx shadcn@latest add @caliper/marimekko-chart
ARR by region and plan ($k)
26%64%
52%37%
31%30%39%

ARR by region and plan ($k), 2026
ColumnStarterTeamEnterpriseTotal
North America1203408321292
EMEA90416300806
APAC112110144366
LatAm405032122

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 #

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

example.tsx
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.

Checking your licence…

API reference #

MarimekkoChart

component
PropTypeDefault
label *string—
segments *readonly ChartSeries[]—
periods *readonly MekkoPeriod[]—
unitstring""
formatValue((value: number) => string)numberText
heightnumber300
loadingboolean—
errorstring—
classNamestring—

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.

KeyBehaviour
→Moves to the next item or value.
←Moves to the previous item or value.
↓Moves to the next item or value.
↑Moves to the previous item or value.
EscapeCloses or cancels, then returns focus to where it came from.

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.