// SLIDE 01 — HOOK

CHAPTER 12 — HIERARCHY CHARTS

Before choosing a form, name what the hierarchy contains. Hierarchies have three distinguishable properties that differe

Chapter 12 — Hierarchy Charts — Proportions. At each level, the children of a node divide the parent's value. A department's total budget equals the sum
NARRATION

Before choosing a form, name what the hierarchy contains. Hierarchies have three distinguishable properties that different forms encode differently. Proportions. At each level, the children of a node divide the parent's value. A department's total budget equals the sum of its programs' budgets. Showing proportions means making the area of each node visually proportional to its value.

// SLIDE 02 — THE FOUR FORMS AND WHAT EACH E

THE FOUR FORMS AND WHAT EACH ENCODES

Treemap.Sunburst.Circle packing.Tree diagram.
NARRATION

Treemap. Nested rectangles where each rectangle's area encodes its value. The squarified algorithm (Bruls, Huizing, van Wijk, 2000) keeps aspect ratios near square, which maximizes the accuracy with which the reader can compare areas. Treemaps answer the question "how are the proportions distributed?" with the highest accuracy available for area encoding. They do this well for two or three levels of nesting. Past three levels, the innermost rectangles compress into thin slivers where area is impossible to read and labels cannot fit. Sunburst.

// SLIDE 03 — WHY RECTANGLES WIN ON AREA COM

WHY RECTANGLES WIN ON AREA COMPARISON.

Both treemaps and circle packing encode area. The treemap wins on area comparison accuracy, and the reason is the same m

Why Rectangles Win on Area Comparison — Rectangles have aligned edges. When two rectangles share a common baseline or a common axis, the reader can compare thei
NARRATION

Both treemaps and circle packing encode area. The treemap wins on area comparison accuracy, and the reason is the same mechanism that makes bar charts outperform pie charts. Rectangles have aligned edges. When two rectangles share a common baseline or a common axis, the reader can compare their heights or widths with near-position-accuracy , the eye anchors on the shared reference. This is the same mechanism that makes bar charts so readable: position along a common scale is the highest-accuracy channel Cleveland and McGill identified.

// SLIDE 04 — THE DEPTH LIMIT AND WHY IT EXI

THE DEPTH LIMIT AND WHY IT EXISTS

10%
share at each level has an area equal to 0
10%
share per level, a level-5 node occupies 0
001%
of chart area = 0
NARRATION

Treemaps fail past three levels. Sunbursts fail past five. These are not arbitrary rules , they follow from the geometry of the encoding. For a treemap at level n, the area allocated to a node is the area of its parent rectangle multiplied by the node's proportion of its parent's value. Each level of nesting multiplies by a fraction less than 1.

// SLIDE 05 — SQUARIFICATION AND WHY THE ALG

SQUARIFICATION AND WHY THE ALGORITHM MATTERS

The squarified treemap algorithm deserves its own explanation because it is not obviously better than alternatives, and

Squarification and Why the Algorithm Mat — The first treemap algorithms (slice-and-dice, attributed to Shneiderman 1991) divided each rectangle by alternating hori
NARRATION

The squarified treemap algorithm deserves its own explanation because it is not obviously better than alternatives, and understanding why it is reveals something about the area-comparison mechanism. The first treemap algorithms (slice-and-dice, attributed to Shneiderman 1991) divided each rectangle by alternating horizontal and vertical cuts. A large parent rectangle gets sliced into vertical columns; each column gets diced into horizontal rows.

// SLIDE 06 — SUNBURSTS AND THE GESTALT FIGU

SUNBURSTS AND THE GESTALT FIGURE-GROUND MECHANISM

The sunburst diagram works because of a Gestalt perceptual mechanism that the treemap does not use: figure-ground.

Sunbursts and the Gestalt Figure-Ground — In a sunburst, the center is the figure. The outer rings recede into background. The reader's eye naturally treats the c
NARRATION

The sunburst diagram works because of a Gestalt perceptual mechanism that the treemap does not use: figure-ground. In a sunburst, the center is the figure. The outer rings recede into background. The reader's eye naturally treats the center as the root , the organizing structure from which everything else radiates. Moving outward means moving deeper into the hierarchy. This spatial metaphor is so natural that readers unfamiliar with sunburst charts tend to understand the center-to-outer structure without instruction.

// SLIDE 07 — IRREGULAR DEPTH AND CIRCLE PAC

IRREGULAR DEPTH AND CIRCLE PACKING'S STRUCTURAL ADVANTAGE

The case for circle packing is most legible on an example.

Irregular Depth and Circle Packing's Str — Imagine a dataset describing humanitarian aid organizations: some are large multinationals with programs, sub-programs,
NARRATION

The case for circle packing is most legible on an example. Imagine a dataset describing humanitarian aid organizations: some are large multinationals with programs, sub-programs, and project activities (three levels); some are regional NGOs with programs only (two levels); some are local grassroots organizations with no formal sub-structure (one level).

// SLIDE 08 — THE TREE DIAGRAM: WHEN TOPOLOG

THE TREE DIAGRAM: WHEN TOPOLOGY IS EVERYTHING

Sometimes neither proportions nor depth is the question. The question is: who reports to whom?

The Tree Diagram: When Topology Is Every — A tree diagram is the right form when the structure itself is the answer. An organizational chart showing reporting rela
NARRATION

Sometimes neither proportions nor depth is the question. The question is: who reports to whom? A tree diagram is the right form when the structure itself is the answer. An organizational chart showing reporting relationships. A phylogenetic tree showing species divergence. A decision tree showing conditional branches. In all these cases, the quantitative value at each node matters less than the edges between nodes , the explicit parent-child relationships that define the hierarchy.

// SLIDE 09 — HOW THIS CHANGES THE PROMPT

HOW THIS CHANGES THE PROMPT.

The channel decomposition for hierarchy charts differs from the charts in previous chapters because the primary channel

How This Changes the Prompt — For a treemap, the critical constraints are: the layout algorithm (d3.treemapSquarify), the depth limit (state it explic
NARRATION

The channel decomposition for hierarchy charts differs from the charts in previous chapters because the primary channel , nested area , emerges from the layout algorithm, not from explicit x/y position assignments. For a treemap, the critical constraints are: the layout algorithm (d3.treemapSquarify), the depth limit (state it explicitly so Claude Code does not render all levels), the color encoding (top-level hue cascading to children, or a second quantitative variable as luminance), and the label rule (labels only on rectangles above a minimum size threshold, tooltip fallback for

// SLIDE 10 — EXERCISES

EXERCISES

·A government budget broken down by department, sub-department, and line item (3 uniform levels, proportions are the ques
·A taxonomic classification with 6 levels of depth, from kingdom to species.
·A portfolio of humanitarian aid organizations, some with 3 levels of structure and some with 1.
·An organizational chart for a 30-person team where reporting lines are the question.
·A file system visualization where disk space usage at every level is the question.
NARRATION

Exercise 12.1 , Form selection. For each of the following, name the right hierarchy form (treemap, sunburst, circle packing, or tree diagram) and justify in one sentence using the chapter's three-property framework (proportions, depth, structure): A government budget broken down by department, sub-department, and line item (3 uniform levels, proportions are the question). A taxonomic classification with 6 levels of depth, from kingdom to species. A portfolio of humanitarian aid organizations, some with 3 levels of structure and some with 1.

// SLIDE 11 — KEY TERMS

KEY TERMS

Treemap.Squarified algorithm.Sunburst.Circle packing.Tree diagram.
NARRATION

Treemap. Nested rectangles where area encodes value. Best for proportion comparison. Squarified algorithm minimizes aspect-ratio variance. Depth limit: 3 levels for static display. Squarified algorithm. Bruls, Huizing, van Wijk (2000). Groups nodes to minimize worst aspect ratio. More accurate for area comparison than slice-and-dice. Implemented as d3.treemapSquarify.

// SLIDE 12 — THESIS

THE CORE CLAIM.

Treemap. Nested rectangles where area encodes value. Best for proportion comparison. Squarified algorithm minimizes aspe

Squarified algorithm. Bruls, Huizing, van Wijk (2000). Groups nodes to minimize worst aspect ratio. More accurate for ar

NARRATION

Treemap. Nested rectangles where area encodes value. Best for proportion comparison. Squarified algorithm minimizes aspect-ratio variance. Depth limit: 3 levels for static display. Squarified algorithm. Bruls, Huizing, van Wijk (2000). Groups nodes to minimize worst aspect ratio. More accurate for area comparison than slice-and-dice. Implemented as d3.treemapSquarify.

// SLIDE 13 — CLOSE

ASK THE QUESTION. APPLY THE FRAMEWORK.

THE FOUR FORMS AND WHAT E//WHY RECTANGLES WIN ON ARE//THE DEPTH LIMIT AND WHY I

Brutalist D3 × Claude · Ch.11 · Chapter 12 — Hierarchy Charts

NARRATION

That is the framework. Brutalist D3 times Claude, chapter 11: Chapter 12 , Hierarchy Charts. The patterns are now in place. Apply them.

01 / 13
Brutalist D3 × Claude · Ch.12 · Nik Bear Brown