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

Area Graph

Source: Data Visualisation Catalogue - Area Graph

Area graph reference

Area graph anatomy

Why This Belongs In The Compiler Gallery

The catalogue describes an area graph as a line graph with the space below the line filled. That maps cleanly to the compiler's path glyph with y0/y1 area-band geometry, plus optional line, point, and text guide layers. It is the simplest way to prove that the compiler can render both stroke-only paths and filled path regions from the same data.

Data Contract

Each data row represents one ordered point in a series.

FieldTypePurpose
x or indexquantitative or temporalOrdered position along the horizontal axis.
valuequantitativeHeight of the area at that position.
labeltext or temporalAxis/tooltip label.
seriescategorical, optionalEnables grouped area graphs.
formattedValuetext, optionalLabel/tooltip display.
baselinequantitative, optionalNon-zero baseline when the area should close to something other than zero.

Expected Visual

The faithful catalogue version should show a Cartesian plot with an ordered line moving left to right and a semi-opaque filled area between the line and the zero baseline. The fill should read as secondary context, with the line stroke carrying the primary trend. The reference image uses a single blue area, a distinct top boundary, and simple x/y guide axes.

ElementExpected treatment
Area fillClosed path from each point to a common baseline, with moderate opacity.
Trend edgeSame point sequence as the area, drawn as a stronger stroke above the fill.
BaselineUsually y = 0, visible through axis/grid context.
AxesLinear y scale; time/order x scale.
LabelsSparse tick labels, no dense point labels.

Compiler Mapping

Compiler partMapping
Data sourcepoints table sorted by index or temporal order.
TransformOptional sample for hover points; no transform needed for a single series.
Scalesx: linear, y: linear, optional color: ordinal for grouped series.
Layerspath area with fill, y0: 0, and y1: value; path line with stroke; optional point hit targets; generated or manual guide layers.
InteractionHover point should expose source row and resolved x/y/value lineage.

Faithfulness Notes

The path glyph can still close an area to one constant y value, but the gallery now uses the more general area-band form. That same primitive supports Stacked Area Graphs, range fills, and the density plot's baseline-filled distribution.