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

Candlestick Chart

Source: Data Visualisation Catalogue - Candlestick Chart

Why This Belongs In The Compiler Gallery

Candlestick charts are the first financial chart family in the compiler gallery. They exercise a reusable financial interval transform: raw price ticks compile into open, high, low, and close values before wick and body marks render the chart.

Data Contract

Each raw row is one ordered price observation inside a trading/session interval.

FieldTypePurpose
datetemporalPeriod shown on the x axis.
sequenceordinal/quantitativeSort order within the session.
pricequantitativeRaw price observation.
openquantitative, derivedFirst ordered price in the session.
highquantitative, derivedMaximum session price.
lowquantitative, derivedMinimum session price.
closequantitative, derivedLast ordered price in the session.
directioncategorical, derivedGain, loss, or flat session.

Expected Visual

The chart shows one candle per session. A vertical wick spans low to high, and the body spans open to close. Color encodes whether the close is above or below the open.

Compiler Mapping

Compiler partMapping
Data sourceprice-ticks raw table and derived ohlc table.
TransformfinancialInterval groups by date, sorts by sequence, and computes OHLC fields.
Scalesx: time(date), y: linear(price), color: ordinal(direction).
Layersline wicks and rect candle bodies.
GuidesGenerated axes, gridlines, and direction legend.

Faithfulness Notes

The core OHLC anatomy and temporal x scale are compiler-owned. Remaining work is market-session formatting, minimum visible body height for flat sessions, and richer financial annotations.