Skip to content

chart

A title that states the takeaway, then one chart, big number or table filling the space under it.

Use the chart layout when one chart, number figure or table is the slide: the title states what it shows, and the figure fills the space under it. You can set the “so what” in an <Aside> column beside it and the source on the bottom line.

Example

lookbook / chart-barOpen full deck
decks/lookbook/slides/chart-bar.mdxmdx
---
layout: chart
title: A rider makes 9.4 stops an hour, nearly twice a merchant's own van
eyebrow: Stops per hour
budget: 1m
---

<BarChart
  data={[
    { way: 'Wrenhaul rider', stops: 9.4 },
    { way: 'Van courier', stops: 5.8 },
    { way: "Merchant's own van", stops: 5.1 },
    { way: 'Gig delivery car', stops: 4.2 },
    { way: 'Walking courier', stops: 3.0 },
  ]}
  x="way"
  y="stops"
  orientation="horizontal"
  sort
  highlight="Wrenhaul rider"
  format={{ digits: 1 }}
  caption="Stops made per hour on the road, centre of Kestwick, October 2026"
  source="Merchant survey, n = 112; Wrenhaul operating report, October 2026"
/>

<Aside>

### No parking

A rider stops at the door and walks the parcel in. A van circles for a loading bay. That is most of the gap.

</Aside>

<Notes>
`chart` with a sorted horizontal `<BarChart>`, one bar highlighted and an `<Aside>` for the reason; use it to rank a handful of options.
Five ways to deliver in the centre of Kestwick, ranked by stops an hour. A Wrenhaul rider makes 9.4; the merchant's own van makes 5.1, so nearly twice as many, and a van courier 5.8. The reason is not speed: it is that a bike never has to park.
</Notes>

Slide 98 of the lookbook deckView on GitHub

The title carries the number the bars prove (9.4 stops an hour), the caption names the measure, place and period, and highlight picks out the one bar the title is about. The <Aside> gives the reason in a heading and three short sentences, so the chart keeps the rest of the slide.

When to use it

  • One figure carries the point. The body slot is required and holds one chart, number or table component: <BarChart>, <LineChart>, <Slope>, <Waterfall>, <BigNumber>, <Table> and the rest that deck charts lists.
  • The title is the takeaway. It takes up to 90 characters, enough for a sentence with its number: “Tickets fell 40% after the redesign”, not “Tickets by month”.
  • The reason fits in a few words. An <Aside> takes up to 36 words: the base budget is 40, and filling the aside switches on the “with aside” variant, which narrows it to 36. A <Footnote> takes up to 30 words; the chart’s own source prop works too.
  • The data can sit in the frontmatter. List datasets by name under data:, and name one from the chart with data="name"; inline rows and imported JSON or CSV files work too.

When the chart needs a paragraph beside it, use split; when the point is two to four plain numbers, use stats; for two to four related charts under one title, use dashboard.

Reference

Frontmatter
layout: chart
Surface
the deck's default
Title
required, 90 characters at most
PowerPoint
title-only slide

A title that states the takeaway, then one chart, big number or table filling the space under it: <BarChart>, <LineChart>, <Slope>, <Waterfall>, <BigNumber>, <Table> and the rest (deck charts). Fill <Aside> with the "so what" (a key number or a sentence) to set it in a column beside the chart; put the source in <Footnote> or the chart's source. Datasets may sit in the data: frontmatter. Use split when a chart needs a paragraph beside it, and stats for two to four plain numbers; use dashboard for two to four related measures.

A slide in the chart layout: 2.4 million drops since the first loaf in 2022.
A lookbook slide in this layout, not the example belowlookbook / chart-bignumber

Slots

SlotTakesBudgetWhat goes in it
bodyrequiredchart, number, table, component—One chart, number figure or table component, nothing else; it fills the region. Write the takeaway in title: ("Tickets fell 40% after the redesign"), and the measure, unit and period in the chart's caption.
<Aside>text, number40 wordsThe "so what" beside the chart: a ### heading or a key number and a sentence or two.
<Footnote>text30 wordsThe source and any caveat (sample, period), on the bottom line.

Frontmatter fields

FieldValuesHow to use it
eyebrowtextWrite a few words of at most 40 characters, for example eyebrow: Budget committee, or leave it out.
datatextList datasets by name, each a list of rows, and name one from a chart with data="name": data: { regions: [{ region: EMEA, revenue: 4.2 }] }. Inline rows (data={[...]}) and imported JSON or CSV files work too.
chrometrue (default) falseWrite chrome: false to hide the page number, logo and progress bar on this slide, or chrome: true to show them.

Variants

  • with aside — aside: 36 words

Example

---
layout: chart
title: Eastgate has a quarter of the city average shade
eyebrow: Canopy cover
---

<BarChart
  data={[
    { district: 'Riverside', canopy: 34 },
    { district: 'Northfield', canopy: 26 },
    { district: 'City average', canopy: 21 },
    { district: 'Eastgate', canopy: 9 },
  ]}
  format="percent"
  highlight="Eastgate"
  caption="Share of ground under tree crowns at noon, summer 2026"
/>

<Footnote>Source: Larkfield summer aerial survey, 2026.</Footnote>

<Notes>
Point at Eastgate first, then at the city average: the gap is the argument.
</Notes>

Common mistakes

A topic for a title, and too much aside. This slide names its subject instead of its finding and explains the gap at length:

$ deck lint launch-review
decks/launch-review/slides/stops.mdx
  warning chart-topic-title (stops): "Canopy cover by district" looks like a topic, not a takeaway (a heuristic: it reads as "X by Y").
          Fix: State what the chart shows in the title of decks/launch-review/slides/stops.mdx, with the number when there is one: "Billing tickets doubled in Q3", not "Tickets by queue". Put the measure and period in the chart's `caption`.
  error   content-budget (stops): The aside slot holds 43 words; its layout allows 36 (with aside).
          Fix: Cut it to the essentials, split the slide, move detail into speaker notes, or pick a layout made for more content (`deck layouts`).

launch-review: 1 error, 1 warning in 1 slide (1 step checked).

chart-topic-title is a warning and a heuristic; content-budget is an error and fails the run. Write the finding in the title, and the measure, unit and period in the chart’s caption.

A second figure in the body. The body slot accepts any component, so slot-content checks neither the kind of block there nor how many there are (only a bulleted list is still reported). Keep it to one figure yourself, and give a second chart a slide of its own.

Chart problems. The chart-* rules check the figure itself (too many series or categories, a truncated axis, no highlight). Lint rules lists them with their fixes. few-builds warns when too few of a deck’s chart, diagram and code slides build in steps (lint has the threshold): stage the chart with reveal or at.

  • stats: two to four big numbers in a row, when the point is the size of something.
  • split: a paragraph or bullets beside the chart, when the text matters as much.
  • table: exact values to look up, rather than a pattern.
  • diagram: the same frame for a diagram instead of data.
  • dashboard: two to four small charts or number components, each in a panel with its own heading.

Which chart to pick is on choosing a chart.

Type to search…

↑↓ navigate↵ selectEsc close