Age pyramid
Two groups by age, back to back.
Definition · Updated Nov 2, 2026
An age pyramid sets two groups back to back, with age bands as rows, so you compare their age mix in one shape. Use it for new against returning customers, users by gender or members by region.
Pay once. Every update included.
Live preview
Sample data: active customers by age, new against returning, 25–34 at 28% and 24%
- Data shape
- A share per age band for two groups
- Good for
- Customer age mix, audience profiles
- Avoid when
- There are more than two groups
- Sizes
- XS, S, M and L, re-laid out from the data
Anatomy
Inspect it like the Figma file.
The same layers, names and tokens as the component. Select one to read its size, fill and style.
Layers
082 / Age pyramid
- Layer
- right · 18–24
- Type
- Rectangle
- Size
- 83 × 34
- Fill
- data/primary
- Radius
- 3
- Group
- Marks · 12
Layers
082 / Age pyramid
- Layer
- right · 18–24
- Type
- Rectangle
- Size
- 40 × 20
- Fill
- data/primary
- Radius
- 3
- Group
- Marks · 12
Layers
082 / Age pyramid
- Layer
- right · 18–24
- Type
- Rectangle
- Size
- 19 × 16
- Fill
- data/primary
- Radius
- 3
- Group
- Marks · 12
Sizes
Re-laid out, never scaled.
The same data at XS, S, M and L. Every size is redrawn from the data, so text and line weights never shrink.
M against S
Width360 px480 px
Plot328 px440 px
Labels1818
Marks1212
Height212 px246 px
Same tokens at every size: text styles, 1 px lines and mark radius stay put.
When to use
Two groups, back to back.
Three signs it fits, and three signs another type fits better.
Code and Figma
One name in Figma and in code.
Every Figma property is a prop with the same name and values. One command installs it.
Figma
chart/082-pyramid-customers
npx shadcn add @chartory/age-pyramidimport { AgePyramid } from "@/components/chartory/age-pyramid"import { customerAges } from "./customer-ages"export function CustomerAges() { return ( <AgePyramid data={customerAges} size="m" legend={true} /> )}Hearth widget
Age pyramid as a widget.
The chart in a Hearth card with a hero number and two blocks. One token set, light and dark.
EmberPreset
ChartoryDefault preset
Pick the blocks, the size and the preset for your own widget.
Read the Hearth widget docsFAQ
Age pyramid questions.
What people ask before they put an age pyramid in a dashboard.
Something else?
hello@usechartory.comNew customers on one side and returning on the other, named in the legend; each row's two shares sit at the ends.
Six in the sample, from 18–24 to 65+.
One data object in the sample’s shape: a share per age band for two groups. The docs page lists every field and links its JSON Schema; the sample data comes with the component, so you can start from it and swap in your own.
Series take the preset’s data colours in order, and states such as up, down or warning take its status colours. Change the preset in Figma or in code to recolour every chart at once.
XS, S, M and L, in light and dark. Each size is laid out again from the data, so text and lines keep their size.
Yes. It plays in when it scrolls into view, and when the data changes every mark moves from its old place to its new one. With reduced motion on, it does not move.
Yes. The React component is free in the public registry in Hearth, no token needed; Signal comes with Code and Complete. The Figma component comes with Figma and Complete.
Ask for it by name. The MCP server tells the agent what data it needs and runs the same command: npx shadcn add @chartory/age-pyramid. You review the diff.
Related types
Other ways to show distribution.
The same question, a different shape of answer. Every type ships in Figma and in code.
Same family
Distribution
17 types in Chartory answer this question.