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

Line Graph

Source: Data Visualisation Catalogue - Line Graph

Line graph reference

Line graph anatomy

Why This Belongs In The Compiler Gallery

The catalogue describes a line graph as ordered quantitative values joined on a Cartesian grid, most often over time. The compiler already has a path glyph that groups sorted rows, plus optional point glyphs for inspected samples.

Data Contract

Each data row represents one ordered point.

FieldTypePurpose
x or indexquantitative or temporalOrdered horizontal position.
valuequantitativeVertical value.
labeltext or temporalDisplay label.
seriescategorical, optionalMultiple lines in one chart.
formattedValuetext, optionalTooltip/label display.
isSampledboolean, optionalWhether to render a visible point marker.

Expected Visual

A faithful line graph should show a continuous path through ordered points, with the path direction carrying trend information. The catalogue notes that grouped line charts become hard to read beyond a few series, so the first gallery example should use one line or a small number of clearly colored lines.

ElementExpected treatment
LinePath through sorted x positions.
PointsOptional visible markers, useful for sparse or inspected points.
AxesX axis as time/order; y axis quantitative.
GridLight y-axis guides improve value reading.
Multiple seriesUse groupBy: ["series"] and an ordinal color scale.

Compiler Mapping

Compiler partMapping
Data sourcepoints table.
TransformOptional sample transform for visible point markers.
Scalesx: linear, y: linear, optional color: ordinal.
Layerspath trend line, optional point markers, line grid, text axis labels.
InteractionPoint or path hover should expose ordered value and source row.

Faithfulness Notes

The current path glyph uses straight line segments. That is faithful to the catalogue's basic line graph. Smooth curve interpolation should be a separate option, not the default.