Static documentation

Data Visualisation Catalogue Gallery

Rendered markdown notes for the catalogue review, compiler mapping, implementation tracker, and chart method specs.

38 chart methods
10 with reference assets
43 documents

Stream Graph

Source: Data Visualisation Catalogue - Stream Graph

Why This Belongs In The Compiler Gallery

Stream graphs are the natural next test after stacked area graphs. They use the same stacked area bands, but the stack baseline is centered around a moving middle instead of starting at zero. That makes the chart a focused compiler test for non-zero stack baselines plus smooth area path interpolation.

Data Contract

Each raw row represents one series value at one ordered period.

FieldTypePurpose
periodordinalOrdered position on the x-axis.
periodIndexquantitativeStable sort key for path construction.
seriescategoricalStream member and color key.
valuequantitativeRaw magnitude.
startquantitative, derivedLower boundary emitted by the stream stack mode.
endquantitative, derivedUpper boundary emitted by the stream stack mode.

Expected Visual

The faithful catalogue version should show smooth colored bands flowing across periods, with the total stack centered around a changing baseline. The chart emphasizes relative flow shape more than exact point reading.

ElementExpected treatment
BandsFilled area bands between start and end.
BaselineCentered per period by the stack transform's stream mode.
CurveSmooth interpolation through ordered period centers.
ColorOrdinal palette keyed by series.
LegendGenerated color legend.

Compiler Mapping

Compiler partMapping
Data sourceraw-stream-series and derived segments.
Transformstack with mode: "stream" computes centered start and end boundaries.
Scalesx: band, y: linear(start/end), color: ordinal.
LayersSmooth path area bands using y0 and y1.
GuidesGenerated x/y axes, gridlines, and color legend.

Faithfulness Notes

The first gallery version covers the catalogue's core streamgraph anatomy: centered stack boundaries and smooth filled bands are compiler-owned. Remaining polish is stream-specific ordering/wiggle baselines and richer hover/label policies for dense streams.