---
title: "stats"
description: "Two to four big numbers in a row, each with what it counts and, optionally, how it changed."
---

> Documentation Index
> Fetch the complete documentation index at: https://sandrinodm.github.io/deckster/llms.txt
> Use this file to discover all available pages before exploring further.

# stats

Use the `stats` layout when the point of a slide is the size of a few things: two to four big numbers in one row, each with a label and, if you like, how it changed. The title says what the numbers mean together.

## Example

[Live slide: "Riders stay because the job is a job", slide 82 of the lookbook deck](https://sandrinodm.github.io/deckster/decks/lookbook/#/stats-three)

`decks/lookbook/slides/stats-three.mdx`:

```mdx
---
layout: stats
title: Riders stay because the job is a job
eyebrow: Our riders
surface: inverse
budget: 40s
stats:
  - value: "310"
    label: riders, every one on staff
  - value: "€15.40"
    label: an hour, with sick pay and a bike
    highlight: true
  - value: "4%"
    label: leave in a month
    delta: "from 7.1% in January"
    tone: positive
    trend: down
---

<Footnote>Wrenhaul operating report, October 2026.</Footnote>

<Notes>
`stats` with three figures on the inverse surface; use it for a short row of facts that belong together.
Our riders are staff: an hourly wage, sick pay, a bike we maintain. That is why they stay, and a rider who stays knows every door on the loop.
</Notes>
```

Notice two fields. `highlight: true` on the middle stat sets its figure and the rule above it in the accent, so the room knows which number carries the point. The last stat's delta has no sign, so `trend: down` draws the arrow and `tone: positive` shows the fall as good news.

## When to use it

- **Two to four figures of equal standing.** `stats:` takes two to four items, each a short `value` ("€15.40", "1 in 4") and a `label`. A row of four shortens the labels; the reference below gives the limit.
- **A change worth showing.** `delta` takes a short note of the change ("+12% since 2023"). Deltas line up across the row whatever the labels' lengths.
- **A title that draws the conclusion.** A sentence of context can go under it, and the source in a `<Footnote>`.

The row stands at the same height on every stats slide, so a run of them reads steadily. Use a chart for a trend, a table for more than four figures, and [`equation`](https://sandrinodm.github.io/deckster/reference/layouts/equation/) when the figures add up to a result. For market sizes nested inside each other, use [`market`](https://sandrinodm.github.io/deckster/reference/layouts/market/); for two to four related charts, use [`dashboard`](https://sandrinodm.github.io/deckster/reference/layouts/dashboard/).

## Reference

Frontmatter: `layout: stats`; surface: the deck's default; title: required, 90 characters at most; PowerPoint: title-only slide.

Two to four big numbers in a row, each with what it counts and, optionally, how it changed. The title states what the numbers mean together. The row stands on one line on every stats slide; set `highlight: true` on the stat the point rests on. Use it when the point is the size of something; use a chart (or split with one) for a trend, and a table for more than four figures; use market for nested sizes or dashboard for related charts.

*Slide still (a lookbook slide in this layout, not the example below): A slide in the stats layout: Revenue grew 3.2× in a year, faster than the drops.* [Open the slide](https://sandrinodm.github.io/deckster/decks/lookbook/#/stats-traction)

**Slots**

| Slot | Required | Takes | Budget | What goes in it |
| --- | --- | --- | --- | --- |
| `body` | no | text | 24 words | One sentence of context under the title. Set what the numbers mean together in `title:`. |
| `<Footnote>` | no | text | 30 words | The source of the numbers, on the bottom line. |

**Frontmatter fields**

| Field | Values | How to use it |
| --- | --- | --- |
| `eyebrow` | text | Write a few words of at most 40 characters, for example `eyebrow: Budget committee`, or leave it out. |
| `stats` (required) | text | List 2 to 4 stats, each with `value` (as shown, such as "34%", up to 8 characters), `label` (up to 48 characters, 32 in a row of four), and optionally `delta` ("+12% since 2023", up to 24 characters), `tone` (positive, negative or neutral; set it when a fall is good news), `trend` (up, down or flat, for a delta without a sign) and `highlight: true` for the stat that matters most. |
| `chrome` | `true` (default), `false` | Write `chrome: false` to hide the page number, logo and progress bar on this slide, or `chrome: true` to show them. |

**Variants**

- four stats — `stats[].label`: 32 characters

**Example**

```mdx
---
layout: stats
title: Three summers of the Eastgate pilot
stats:
  - value: "1,240"
    label: street trees planted on 38 blocks
  - value: "−2.8 °C"
    label: average afternoon street temperature
    delta: "−0.9 °C vs. 2025"
    tone: positive
    highlight: true
  - value: "−31%"
    label: heat-related emergency visits
    delta: "−12 pts vs. control"
    tone: positive
---

<Footnote>Pilot blocks against matched control blocks, June to August.</Footnote>

<Notes>
Start with the temperature: it is the number the committee asked about.
</Notes>
```

## Common mistakes

- **Long labels in a row of four.** The fourth stat cuts every label to 32 characters. A 39-character label is a [`schema` error](https://sandrinodm.github.io/deckster/reference/lint-rules/): "stats[0].label: The stats layout sets at most 32 characters here (four stats), got 39." Shorten it, or drop to three stats.
- **A fall that reads as bad news.** Without `tone`, a delta that starts with a minus sign (or a down arrow) is shown as negative, and one that starts with a plus as positive. Fewer emergency visits or a lower cost need `tone: positive` set by hand.
- **A misspelt key.** Each stat takes only `value`, `label`, `delta`, `tone`, `trend` and `highlight`. A typo is a `schema` error rather than a field that quietly does nothing: "stats[1].tones is not a field of stats[1]."
- **Figures written as sentences.** The value is the figure as shown, at most 8 characters. Put the words in `label` and the comparison in `delta`.
- **Context in the body.** The body is one sentence of up to 24 words. The meaning of the numbers belongs in `title:`.

## Related layouts

- [`equation`](https://sandrinodm.github.io/deckster/reference/layouts/equation/): figures joined by operators to a result, when they add up rather than stand side by side.
- [`chart`](https://sandrinodm.github.io/deckster/reference/layouts/chart/): one chart under the title, when the point is a trend or a pattern.
- [`table`](https://sandrinodm.github.io/deckster/reference/layouts/table/): exact values, when there are more than four figures.
- [`bento`](https://sandrinodm.github.io/deckster/reference/layouts/bento/): facets of one subject when one of them matters most and not every facet is a number.
- [`market`](https://sandrinodm.github.io/deckster/reference/layouts/market/): two or three nested market sizes, drawn as circles whose areas follow the figures.
- [`dashboard`](https://sandrinodm.github.io/deckster/reference/layouts/dashboard/): two to four small charts or number components under one takeaway title.

To set a row of figures inside another layout, with `from` and `better`, see [number components](https://sandrinodm.github.io/deckster/data-and-diagrams/number-components/).

Source: https://sandrinodm.github.io/deckster/reference/layouts/stats/index.mdx
