The Grain ยท Interactive Story 01 / 14
A scroll-driven data story
The Grain.

One record carries color, size, and shape. As we aggregate, some of that detail survives and some disappears.

Scroll to change the resolution โ†“

01
This is the grain.

In a dataset, the grain is the level at which a fact exists: one transaction, one customer, one day, or one region.

Before analysis begins, decide what one row means.

02
One grain carries detail.

This grain has a color, a size, and a shape. Identity remains attached.

At fine resolution, all three are still visible.

03
This one is part of many.

The population holds 72 records. Our grain is one of them โ€” still visible, still traceable.

The coral outline follows the same record through the entire story.

04
Group by color.

Grains move toward others of the same color. Color is preserved because color defines the groups.

Identity, exact size, and shape are no longer the focus.

05
The aggregate has a new grain.

Seventy-two input rows become four output rows: one row per color group. Each summary grain's size encodes the combined sizes of its group.

The original combinations of color, shape, size, and identity cannot be reconstructed from these four rows.

06
A new question. A new grouping.

The color groups dissolve. Before grouping by shape, every grain returns to the field.

The data is free โ€” for a moment.

07
Change the grouping, change the memory.

Group by shape instead, and shape survives. Color becomes hidden inside each summary, while sizes are combined.

A different aggregation preserves a different truth.

08
The grouping dissolves.

Before a new aggregation can begin, the old one breaks apart. Each grain returns to the field.

The data is free โ€” for a moment.

09
Group by magnitude.

Low, medium, and high size bands remain visible. Exact sizes, colors, shapes, and identities collapse into three summaries.

10
Coarsen fully.

All records become one total. Fast to compare, easy to communicate โ€” but it cannot explain who, what, or why.

The grain is now: one row for the entire population.

11
Neither resolution is better.

Fine and coarse grains answer different questions. The mistake is not aggregation โ€” it is accidental aggregation.

ResolutionUseful forCannot show
FineDiagnosis, exceptions, sequenceFast overview at scale
CoarseComparison, planning, directionIndividual causes and combinations
12
Choose what the data must remember.

Define the question. Preserve the attributes that matter. Combine only what the decision does not need.

The right grain contains enough detail โ€” and no accidental loss.

Resolution is a design decision
Every aggregate remembers selectively.

Change the grain, and you change the questions the data can answer. Good analytics makes that trade-off deliberate, visible, and reversible where possible.

Ask first: what does one row mean?
Resolution
FineCoarse
Current operation
WHAT DOES ONE ROW MEAN?
Identity Color Size Shape
same source record