// SLIDE 01 — HOOK

BUBBLE CHART

Education Correlates With Longevity —But Population Scale Varies Dramatically

Bubble Chart — Figure 24.1 — Education Correlates With Longevity — But Population Scale Varies Dramatically
NARRATION

Education Correlates With Longevity , But Population Scale Varies Dramatically Figure 24.1 , Education Correlates With Longevity , But Population Scale Varies Dramatically

// SLIDE 02 — WHAT THIS CHART IS

WHAT THIS CHART IS.

trivariate scatter plotposition along a common axisarea
NARRATION

A bubble chart is a trivariate scatter plot : it places data points on a Cartesian grid using position (x, y) to encode two quantitative variables, then encodes a third variable through circle area. The perceptual mechanism exploited is position along a common axis , the most accurate channel in Cleveland and McGill's encoding hierarchy , supplemented by area , which is less accurate but allows a third quantitative dimension without adding a spatial axis. Color and stroke pattern layer in a fourth variable: categorical region membership.

// SLIDE 03 — WHY IT WAS CHOSEN

WHY IT WAS CHOSEN.

The data contains three quantitative variables (education, life expectancy, population) and one categorical variable (re

NARRATION

The data contains three quantitative variables (education, life expectancy, population) and one categorical variable (region) , a structure that cannot be represented by any two-variable chart without discarding information. A scatter plot loses population. A bar chart loses the correlation structure entirely. A bubble chart is the minimum-distortion solution for this data shape. The message , that education and longevity correlate, but that population scale differs enormously across regions , requires simultaneously visible x/y correlation and visible size variation. This chart delivers both.

// SLIDE 04 — WHAT THE ALTERNATIVE WOULD BRE

WHAT THE ALTERNATIVE WOULD BREAK.

grouped bar chartcorrelation structurestacked area chart
NARRATION

The nearest alternative, a grouped bar chart , could show either education or life expectancy by country but cannot encode population size except through supplementary labeling. More critically, it destroys the correlation structure : the viewer sees regional averages or individual bars , not the relationship between the two variables. Countries where education is high but life expectancy lags (or vice versa) become invisible. A stacked area chart fails for different reasons: stacking requires values that sum to a meaningful total , this data has no such property.

// SLIDE 05 — THE HARD LIMITS

THE HARD LIMITS.

Bubble charts fail at scale : beyond 30–40 bubbles, occlusion from overlapping circles degrades legibility. This impleme

NARRATION

Bubble charts fail at scale : beyond 30, 40 bubbles, occlusion from overlapping circles degrades legibility. This implementation addresses overlap with semi-transparent fills ( fill-opacity: 0.75 ) and renders largest bubbles first so smaller ones remain visible above them. The second hard limit , and the most common implementation error , is encoding size by radius rather than area. Encoding by radius causes exponential visual distortion: a circle twice the radius appears four times as large.

// SLIDE 06 — PROMPT

PROMPT

bubble-chart.htmla full HTML page with inline CSS and inline D3 v7 (loaded from The chart should fill the viewport, be responsive on resi
bubble-chart/data.jsonthe data file the chart loads via d3.json("./bubble-chart/data.json"), with a fallback inline literal in the HTML if the
Global human development indicators by country, 2024 estimates. Fictional placeholderrealistic values derived from public HDI data. Proves the visualization renders before real data is substituted.
idstring — ISO 3166-1 alpha-3 country code (used as bubble label for large populations)
countrystring — full country name for tooltip display
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 bubble chart in D3 v7. Two files:

// SLIDE 07 — AI WAYBACK MACHINE

AI WAYBACK MACHINE.

W. E. B. Du BoisRun this:"W. E. B. Du Bois"Now make the prompt better.
NARRATION

The ideas in this chapter didn't appear from nowhere. W. E. B. Du Bois designed a series of data visualizations , including proportional bubbles, circular flow diagrams, and color-coded maps , for the 1900 Paris Exposition's Exhibit of American Negroes. They are among the most visually inventive infographics of any era. W. E. B. Du Bois, circa 1900. 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. W. E. B. Du Bois designed a series of data visualizations — includ

W. E. B. Du Bois, circa 1900. AI-generated portrait based on a public domain photograph (Wikimedia Commons).

NARRATION

The ideas in this chapter didn't appear from nowhere. W. E. B. Du Bois designed a series of data visualizations , including proportional bubbles, circular flow diagrams, and color-coded maps , for the 1900 Paris Exposition's Exhibit of American Negroes. They are among the most visually inventive infographics of any era. W. E. B. Du Bois, circa 1900. 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//WHAT THE ALTERNATIVE WOUL

Brutalist D3 × Claude · Ch.24 · Bubble Chart

NARRATION

That is the framework. Brutalist D3 times Claude, chapter 24: Bubble Chart. The patterns are now in place. Apply them.

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