Skip to content
InsightCharts

Search

Search guides and components

Stat row

Two to five key figures in one row separated by hairlines, collapsing to two columns and then one as the container narrows.

Use when
The opening summary of a report or dashboard: the two to five most important numbers. Give every figure a delta or a context line, and order them by importance.
Avoid when
More than five figures (use kpi grid), a single lead number (use big number with size: "hero"), or figures that need their history shown (use kpi grid, or variant: "tiles" with a trend).

Preview

Renewables supplied 31.7% of the world's electricity in 2024

Global electricity generation, 2024

Share from renewables
31.7%
+1.9 pts vs 2023
Solar generation, TWh
2,131
+29% vs 2023
Wind generation, TWh
2,494
+7.9% vs 2023
Share from all clean sources
40.9%
Above 40% for the first time since the 1940s

Source: Ember, Global Electricity Review 2025 · Figures are approximate, for illustration

Composition

Built from

The pieces stat row renders or expects in its slots.

Atoms

2

A featured statistic with its label, change and the context that gives it meaning.

A compact, bordered KPI tile: label, value, change against a baseline and an optional trend graphic.

Used in

3 templates use stat row.

Templates

3

A set of linked charts over one shared dataset that filter each other. It has a headline, a sentence of instructions with filter chips, a row of figures that recompute from the filtered rows, two to four charts and an optional detail table. It opens on selections the author chooses.

A one-page summary. It has a headline that states the main finding with its number, a deck, a row of three or four key figures, one hero chart with a takeaway callout, two smaller supporting exhibits, a short list of actions and a source note.

A long article read by scrolling. It has a headline, then an ordered list of blocks in a reading column, then a source note. The blocks are prose, figures, charts with a callout, scrolly sequences, pull quotes, stat rows, small multiples and chapter breaks. Exhibits can be wider than the column.

Installation

$ pnpm dlx shadcn@latest add @insightcharts/stat-row

The CLI copies the source into your project and needs the @insightcharts registry in components.json; see installation. With the package, import it by name:

import { StatRow } from "insightcharts";

Examples

Monthly active users
48.2K
+8.3%vs September
Median first-response time
2 h 14 min
−18%vs September
Net revenue retention
112%
Top quartile for the sector is 110%

Illustrative data

Two figures

Households that could not cover a €500 bill
1 in 4
Without borrowing or selling something
Households in arrears on utility bills
6.8%
+0.4 pts vs 2022

Source: Eurostat, EU-SILC 2023 · Figures are approximate, for illustration

Five figures

Visits
1.3M
+12% vs last month
Unique visitors
412K
+9% vs last month
Sign-ups
38.2K
+3.1% vs last month
Paid conversions
5.1K
−2.4% vs last month
Sign-up to paid
13.4%
−0.7 pts vs last month

Illustrative data

Props

PropTypeDefaultDescription
itemsrequired{ value, label, context?, delta?, deltaLabel?, upIsGood?, format?, trend? }[]Two to five figures, most important first. Each takes the props of big-number (or stat-tile when variant is tiles).
variant"plain" | "tiles""plain"Open figures divided by hairlines, or bordered tiles that can carry a trend.
formatFormatSpec"auto"Number format for every figure that does not set its own.
titlestringThe main fact with its number, or a plain label.
subtitlestringPopulation and period the figures share.
sourcestringShown under the row as "Source: ...".
notestringMethod note or caveat.
themeThemeInputTheme override, passed on to every figure.
mode"auto" | "system" | "light" | "dark""auto"Colour mode, passed on to every figure.