// SLIDE 01 — HOOK

SANKEY DIAGRAM

Global Energy Flow — Source to End Use, Width = Exajoules

Sankey Diagram — Figure 62.1 — Width = Exajoules
NARRATION

Global Energy Flow , Source to End Use, Width = Exajoules Figure 62.1 , Width = Exajoules

// SLIDE 02 — WHAT THIS CHART IS

WHAT THIS CHART IS.

A Sankey diagram encodes directed flows between nodes using ribbons whose width is strictly proportional to the flow qua

NARRATION

A Sankey diagram encodes directed flows between nodes using ribbons whose width is strictly proportional to the flow quantity. Nodes are rectangles (or points) arranged in columns representing stages of a process; ribbons connect source nodes to target nodes and can split or merge at each stage. The perceptual mechanism is area: the viewer's eye integrates ribbon width over length, making proportional flow comparisons automatic , a ribbon that is twice as wide carries twice the quantity, and this is legible without reading any number.

// SLIDE 03 — WHY IT WAS CHOSEN HERE

WHY IT WAS CHOSEN HERE.

The dataset is a directed multi-stage flow system — energy moving from primary sources through conversion stages to end

NARRATION

The dataset is a directed multi-stage flow system , energy moving from primary sources through conversion stages to end uses with explicit losses , and the message is about where quantity is concentrated and where it is dissipated. No other chart type encodes this simultaneously. A stacked bar chart at each stage could show totals but cannot show which source flows to which end use. A chord diagram would show bilateral relationships but imposes a circular layout that loses the left-to-right process directionality.

// SLIDE 04 — WHAT THE ALTERNATIVE WOULD BRE

WHAT THE ALTERNATIVE WOULD BREAK.

An alluvial diagram is the closest structural relative. The distinction is subtle but important: alluvial diagrams show

NARRATION

An alluvial diagram is the closest structural relative. The distinction is subtle but important: alluvial diagrams show how categorical composition changes across time or grouping variables , the flows represent reclassifications of the same population. Sankey diagrams show physical or financial flows where quantity is transferred, not just reclassified, and losses are permitted (total output at a node can be less than total input, encoding inefficiency or waste).

// SLIDE 05 — FRAMEWORK REFERENCE

FRAMEWORK REFERENCE

FRAMEWORK FT Visual Vocabulary category: Flow — "Show the volume or intensity of movement between two or more states or

NARRATION

FRAMEWORK FT Visual Vocabulary category: Flow , "Show the volume or intensity of movement between two or more states or conditions." Tufte principle: the Sankey is data-ink efficient when the flow quantity is the message , every pixel of ribbon width encodes a real quantity. The one design decision worth knowing: node horizontal position is fixed by stage column, but vertical position within a column is determined by the layout algorithm minimising link crossings.

// SLIDE 06 — PROMPT

PROMPT

sankey-diagram.htmla full HTML page with inline CSS and inline D3 v7 (loaded from The chart should fill the viewport, be responsive on resi
sankey-diagram/data.jsonthe data file the chart loads via d3.json("./sankey-diagram/data.json"), with a fallback inline literal in the HTML if t
Sankey diagram datanodes represent stages or entities in a flow system; links represent directed flows between them. Values are in exajoule
nodes.idstring — unique key, must match link source/target
nodes.labelstring — display name on the diagram
NARRATION

Paste this into Claude Code to generate a working version of this chart, plus its data file. The result will not be a perfect replica , the goal is that the reader can run the prompt, get a chart of this type, and read its source. Generate a complete, self-contained sankey diagram in D3 v7. Two files:

// SLIDE 07 — AI WAYBACK MACHINE

AI WAYBACK MACHINE.

Matthew Henry Phineas Riall SankeyRun this:"Matthew Henry Phineas Riall Sankey"Now make the prompt better.
NARRATION

The ideas in this chapter didn't appear from nowhere. Matthew Henry Phineas Riall Sankey drew the diagram that bears his name in 1898 , for an engineering analysis of energy losses in a steam engine, where flow widths encoded thermal-energy magnitudes. Energy-balance diagrams still use his form a century later. Matthew Henry Phineas Riall Sankey, circa 1898. AI-generated portrait based on a public domain photograph (Wikimedia Commons).

// SLIDE 08 — THESIS

THE CORE CLAIM.

The ideas in this chapter didn't appear from nowhere. Matthew Henry Phineas Riall Sankey drew the diagram that bears his

Matthew Henry Phineas Riall Sankey, circa 1898. AI-generated portrait based on a public domain photograph (Wikimedia Com

NARRATION

The ideas in this chapter didn't appear from nowhere. Matthew Henry Phineas Riall Sankey drew the diagram that bears his name in 1898 , for an engineering analysis of energy losses in a steam engine, where flow widths encoded thermal-energy magnitudes. Energy-balance diagrams still use his form a century later. Matthew Henry Phineas Riall Sankey, circa 1898. AI-generated portrait based on a public domain photograph (Wikimedia Commons).

// SLIDE 09 — CLOSE

ASK THE QUESTION. APPLY THE FRAMEWORK.

WHAT THIS CHART IS//WHY IT WAS CHOSEN HERE//WHAT THE ALTERNATIVE WOUL

Brutalist D3 × Claude · Ch.62 · Sankey Diagram

NARRATION

That is the framework. Brutalist D3 times Claude, chapter 62: Sankey Diagram. The patterns are now in place. Apply them.

01 / 09
Brutalist D3 × Claude · Ch.62 · Nik Bear Brown