// SLIDE 01 — HOOK

SCATTERPLOT

Figure 63.1 — Scatterplot

NARRATION

Figure 63.1 , Scatterplot

// SLIDE 02 — THE PERCEPTUAL MECHANISM

THE PERCEPTUAL MECHANISM.

A scatterplot encodes two quantitative variables simultaneously as position on two orthogonal axes — the most accurate p

The perceptual mechanism — No other chart type answers the question "do these two variables move together?" as directly. A bar chart can show both
NARRATION

A scatterplot encodes two quantitative variables simultaneously as position on two orthogonal axes , the most accurate perceptual channel available for quantitative data. Each observation becomes a point whose X coordinate encodes one variable and Y coordinate encodes the other. The spatial distribution of the point cloud reveals the relationship between the two variables : the viewer's visual system detects the overall slope, clustering, spread, and outliers pre-attentively, before any conscious analysis. No other chart type answers the question "do these two variables move together?" as directly.

// SLIDE 03 — READING CORRELATION FROM A SCA

READING CORRELATION FROM A SCATTERPLOT.

Direction:Shape:Strength:Outliers:Pearson correlation coefficient (r)
NARRATION

Direction: a cloud sloping up-right is a positive correlation (both variables increase together); down-right is negative (one rises as the other falls); horizontal or circular is null (no relationship). Shape: a straight diagonal band is linear; a curved band may be exponential, logarithmic, or U-shaped , each requiring a different model. Strength: a narrow, tight band indicates strong correlation; a wide dispersed cloud indicates weak correlation. Outliers: points far from the main cloud are worth naming , they often carry the most analytical value.

// SLIDE 04 — THE TREND LINE AND ITS LIMITS

THE TREND LINE AND ITS LIMITS

The dashed trend line is an Ordinary Least Squares (OLS) linear regression line — it minimises the sum of squared vertic

The trend line and its limits — ⚠ Correlation is not causation. A strong Pearson r means the two variables move together — it does not mean one causes t
NARRATION

The dashed trend line is an Ordinary Least Squares (OLS) linear regression line , it minimises the sum of squared vertical distances from each point to the line. It is the correct summary of a linear relationship and can be used for interpolation within the observed range. Three things it cannot do: extrapolate reliably beyond the data range; detect non-linear relationships (a curved trend would require a polynomial or log model); or prove causation. ⚠ Correlation is not causation.

// SLIDE 05 — WHY IT WAS CHOSEN FOR THIS DAT

WHY IT WAS CHOSEN FOR THIS DATA.

The dataset is paired numerical observations across named entities (countries), where the message is a bivariate relatio

NARRATION

The dataset is paired numerical observations across named entities (countries), where the message is a bivariate relationship , does economic wealth predict longevity? The scatterplot is the only correct chart for this question. A bar chart of GDP and a separate bar chart of life expectancy would show both variables but hide their relationship entirely. The scatterplot shows the positive correlation, the logarithmic saturation at high GDP, and the outliers (USA: high GDP, lower life expectancy than peers; Nigeria: low on both) all at once.

// SLIDE 06 — THE ONE DESIGN DECISION WORTH

THE ONE DESIGN DECISION WORTH KNOWING.

The brush selection (drag on the chart) isolates a rectangular region of the point cloud and recomputes Pearson r and R²

NARRATION

The brush selection (drag on the chart) isolates a rectangular region of the point cloud and recomputes Pearson r and R² for only the selected points. This is not a decoration , it is the correct way to investigate whether correlation holds within a sub-range, or whether a different relationship structure operates in one part of the space (e.g., among high-income countries only). Local correlation analysis is how scatterplots graduate from presentation to analysis.

// SLIDE 07 — FRAMEWORK REFERENCE

FRAMEWORK REFERENCE

Framework — FT Visual Vocabulary FT Visual Vocabulary category: Correlation — "Showing the relationship between two or m

NARRATION

Framework , FT Visual Vocabulary FT Visual Vocabulary category: Correlation , "Showing the relationship between two or more variables." Abela quadrant: Relationship (variables against each other). Tufte principle applied: the point cloud is all data; the trend line summarises it; the axis labels name it. No legend is needed for the primary encoding , position is self-explaining. Colour is added only for secondary grouping, always with a redundant text label.

// SLIDE 08 — PROMPT

PROMPT

scatterplot.htmla full HTML page with inline CSS and inline D3 v7 (loaded from The chart should fill the viewport, be responsive on resi
scatterplot/data.jsonthe data file the chart loads via d3.json("./scatterplot/data.json"), with a fallback inline literal in the HTML if the
Paired numerical data for scatterplot. Each record has two quantitative variables (x, y), an optional size variable for do not pre-compute it.
labelstring — point label shown in tooltip and optionally on hover
xnumber — horizontal axis variable
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 scatterplot in D3 v7. Two files:

// SLIDE 09 — AI WAYBACK MACHINE

AI WAYBACK MACHINE.

John Frederick HerschelRun this:"John Herschel"Now make the prompt better.
NARRATION

The ideas in this chapter didn't appear from nowhere. John Frederick Herschel drew what is generally credited as the first scatter plot, in 1833, plotting orbits of double stars , predating Galton's well-known parents-and-children height scatter by half a century. John Frederick Herschel, circa 1860. AI-generated portrait based on a public domain photograph (Wikimedia Commons).

// SLIDE 10 — THESIS

THE CORE CLAIM.

The ideas in this chapter didn't appear from nowhere. John Frederick Herschel drew what is generally credited as the fir

John Frederick Herschel, circa 1860. AI-generated portrait based on a public domain photograph (Wikimedia Commons).

NARRATION

The ideas in this chapter didn't appear from nowhere. John Frederick Herschel drew what is generally credited as the first scatter plot, in 1833, plotting orbits of double stars , predating Galton's well-known parents-and-children height scatter by half a century. John Frederick Herschel, circa 1860. AI-generated portrait based on a public domain photograph (Wikimedia Commons).

// SLIDE 11 — CLOSE

ASK THE QUESTION. APPLY THE FRAMEWORK.

THE PERCEPTUAL MECHANISM//READING CORRELATION FROM //THE TREND LINE AND ITS LI

Brutalist D3 × Claude · Ch.63 · Scatterplot

NARRATION

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

01 / 11
Brutalist D3 × Claude · Ch.63 · Nik Bear Brown