Skip to content

Number components

Show a single number or a few numbers with the number components.

When the point of a slide is one number, or a few, a chart only gets in the way. This page shows you which number component fits the job, how the kit writes the numbers and their changes, when a figure counts up, and when a layout does the job with no component at all. Every prop is on the chart reference.

Pick the component

Job Component
One figure is the message <BigNumber>
Two to four headline figures, each with its change <StatRow>
Before and after, or A against B <Comparison>
Progress towards a target <Progress>
A share that should feel human, “3 in 10” <Pictogram>
A trend as context beside a number <Sparkline>

One of each, in the order of the table:

<BigNumber value={3} unit="days" label="from signup to a live workspace" from={14} better="down" relative={false} />
<StatRow stats={[{ value: 38, unit: '%', label: 'fewer tickets', highlight: true }, { value: 2.5, unit: 'h', label: 'first reply', from: 14, better: 'down' }]} />
<Comparison from={{ value: 14, label: '2025' }} to={{ value: 2.5, label: 'October 2026' }} unit="h" better="down" />
<Progress value={31} target={40} unit="%" label="of questions solved by self-serve" />
<Pictogram value={3} total={10} label="questions now end in the help centre" />
<Sparkline values={[9, 7.2, 5.8, 4.9, 3.6, 2.5]} unit="h" />

Put the component in the chart layout, alone or with an <Aside> beside it. A <StatRow> holds four stats at most and a <Pictogram> 100 units; past four figures, use a <Table> (Choosing a chart covers tables). <BigNumber> takes trend and each <StatRow> stat takes spark for a small line of recent values, so a separate <Sparkline> is for an <Aside> or a sentence.

Every component takes at, the step that reveals it. This slide shows a <BigNumber> on step 1 and brings in one region per step after it in its <Aside>:

  1. Caching at the edge cut median API latency from 212 ms to 48 ms, step 0 (of steps 0 to 4).0start
  2. Caching at the edge cut median API latency from 212 ms to 48 ms, step 1 (of steps 0 to 4).1
  3. Caching at the edge cut median API latency from 212 ms to 48 ms, step 2 (of steps 0 to 4).2
  4. Caching at the edge cut median API latency from 212 ms to 48 ms, step 3 (of steps 0 to 4).3
  5. Caching at the edge cut median API latency from 212 ms to 48 ms, step 4 (of steps 0 to 4).4finished
components / edge-latency5 steps; select one to open the deck at that step in a new tab
<BigNumber at={1} value={48} unit="ms" label="median API latency at the edge" from={212} better="down" relative={false} context="All regions, the week after the move" />

When a figure counts up

In a live deck, a plain figure counts up from zero to its value when the deck moves forward onto its slide, or onto the step that reveals it. It does not count:

  • going backward, or when you open the slide directly by its URL;
  • in static mode, so deck shot, deck lint and every export show the final value;
  • with reduced motion turned on in the system;
  • for a figure that is not a plain number (<5, 12–15, 3 in 10), that reads as a year (1000 to 2999 with no sign or decimals), or that has fewer than ten steps in its last digit, such as 3, 7 or 0.5.

The figures of <BigNumber>, <StatRow>, <Comparison> and a single-bar <Progress> count, and so do the figures of the stats, equation and bento layouts. The final value holds its place in the layout the whole time, so nothing reflows while it counts. Steps and motion in general are on Builds.

Deltas and which way is better

Give a figure from and the kit computes the change and writes it. better says which way is good news (up by default; down for hours, costs and errors) and colours the change from it. relative writes the change as a percentage of from, except for values in percent, whose change is written in points:

data-stories / scorecardOpen full deck
decks/data-stories/slides/scorecard.mdxmdx
---
layout: chart
title: The redesign cut tickets, sped up replies and lifted satisfaction
eyebrow: The scorecard
budget: 1m
---

<StatRow
  stats={[
    { value: 38, unit: '%', label: 'fewer tickets a month, June to October', highlight: true, spark: [7.0, 6.9, 7.2, 7.3, 7.4, 7.1, 5.9, 5.1, 4.6, 4.4] },
    { value: 2.5, unit: 'h', label: 'median first reply in October', from: 14, better: 'down', spark: [14, 13, 13.5, 12, 11, 7.2, 4.2, 3.4, 2.9, 2.5] },
    { value: 91, unit: '%', label: 'of rated conversations marked good', from: 84, spark: [84, 85, 84, 83, 85, 86, 88, 89, 90, 91] },
  ]}
/>

<Footnote>Source: Lumen helpdesk, January to October 2026. Satisfaction from 6,210 rated conversations.</Footnote>

<Notes>
Three numbers, one story: fewer people need us, and the ones who do get answers faster and like them more.

The ticket number is the one to remember. The next slide shows where it comes from.
</Notes>

Slide 2 of the data-stories deckView on GitHub

The second stat is 2.5 h from 14 with better: 'down', so it reads “−82% vs 14 h” in the good-news colour; the third is 91% from 84, so it reads “+7 pts vs 84%”. With relative={false} the change is written in the unit: the <BigNumber> above shows “−164 ms”. Without from, write the change yourself in delta (“+12% since 2025”), with tone (positive, negative or neutral) to colour it; on a <StatRow> stat, trend (up, down, flat) points the arrow of a delta written without a sign. A change across zero is always written in the unit.

<StatRow> takes its stats as RowStat objects (<Progress> takes items of the similar ProgressItem for several bars):

RowStat

FieldTypeDefaultDescription
valuerequirednumber | string—The number, formatted by the brand, or text as it should read.
labelrequiredstring—What it counts, in a few words.
deltastring—The change as written ("+12% since 2025"); computed from from when that is given.
fromnumber—The value it is compared with, for a computed delta.
relativebooleantrue; false for values in percentWrite the change from from as a percentage of it, or in the unit (false). The default is a percentage, except for values in percent (unit "%" or format "percent"), whose change is written in points: "+7 pts". A change across zero is always written in the unit.
better"up" | "down"upWhich way is good news, for a computed delta.
tone"positive" | "negative" | "neutral"—Whether the change is good news; from better and the sign when left out.
trend"up" | "down" | "flat"—Which way the change points, for a delta written without a sign.
sparknumber[]—Recent values, oldest first, drawn as a sparkline under the label.
highlightboolean—The stat the point rests on: an accent rule and the accent color.
formatFormat—How this stat's number is written, over the row's.
unitstring—This stat's unit, over the row's; it resets the row's format style unless it is a scale (K, M, B).

charts.json · types

<Comparison> draws the two values as bars from a shared zero line and writes the change between them. Next to it, a <Sparkline> in the <Aside> gives the weeks in between:

A dark slide comparing the median first reply: 14 h in 2025 in muted type and 2.5 h in October 2026 highlighted in ochre, with an arrow marked −82% between them, and an aside with a falling sparkline of the weekly median ending at 2.5 h.
data-stories / first-replyOpen in the deck

Number formats

The brand sets the number style (compact notation, its currency and locale), and format overrides it per component or per stat: "number", "standard", "compact", "currency", "percent", "delta", "percent-delta", "currency-delta", or an object:

FormatOptions

FieldTypeDefaultDescription
style"number" | "currency" | "percent"—percent values are in percent already (34 is 34%); currency adds the currency sign.
notation"standard" | "compact"—compact writes 1.2M; standard every digit.
currencystring—An ISO 4217 currency code, such as EUR.
digitsnumber—Exactly this many fraction digits, 0 to 4.
signedboolean—Always show the sign, for changes: +12.

charts.json · types

Percent values are already in percent: write 34 for 34%. unit follows each value ("ms", "h", "trees"); a scale unit (K, M, B) sits tight against the number and keeps the currency sign, so unit="M" with currency writes $1.2M.

When a layout is better

Three layouts set figures from frontmatter, with no component:

  • stats: two to four figures in a row, each with a label and an optional delta, when the point is the size of things side by side.
  • equation: two to four terms: joined by op (times, plus, minus, divide) and a result:, when a figure is built from its parts. With reveal: true the terms arrive left to right, one per step, and the result last.
  • bento: three to five tiles of one subject, figures, text and pictures mixed, with the lead tile on the accent surface.
An equation slide: 182,000 drops in October 2026, times €3.10 average price a drop, times 12 months, equals €6.8M annual recurring revenue, set large on a terracotta panel that runs to the right and bottom edges.
lookbook / equation-arrOpen in the deck

Their fields and limits are on their layout pages: stats, equation and bento.

Type to search…

↑↓ navigate↵ selectEsc close