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

Density Plot

Source: Data Visualisation Catalogue - Density Plot

Why This Belongs In The Compiler Gallery

Density plots are the first distribution chart in the gallery that requires more than summary statistics. They prove the compiler can estimate sampled density rows from raw observations and then render those rows through existing Cartesian path primitives.

Data Contract

Each raw row represents one observation.

FieldTypePurpose
valuequantitativeRaw observed measure.
density.valuequantitative, derivedSampled x value emitted by the density transform.
density.densityquantitative, derivedEstimated kernel density at the sampled value.
bandwidthquantitative, derivedKernel bandwidth used for the estimate.

Expected Visual

A faithful density plot should show one smooth distribution curve filled to a baseline. The current compiler version uses sampled density points and a smoothed baseline-closed path.

Compiler Mapping

Compiler partMapping
Data sourceobservations raw table and derived density table.
Transformdensity samples a Gaussian kernel estimate from raw values.
Scalesx: linear(value), y: linear(density).
LayersFilled path closed to the x-axis baseline.
GuidesGenerated x/y axes and gridlines.

Faithfulness Notes

The key compiler gap closed here is data ownership: the curve is no longer hand-authored. Smooth path interpolation now covers the first visual form. Remaining work is grouped density policies, bandwidth controls, and richer density normalization options shared with violin plots.