A first-class OHLC candlestick draw layer — the financial sibling of
BoxPlot. Reads four price columns (open/high/low/close) of
series into an OhlcSeries and draws one candle per key: the
open→close body (direction-coloured) and the high–low wick, over the key's
slot x-span. Derives the body extents itself (min/max of open/close) — the
consumer never runs a withColumn precompute. Registers into the enclosing
Layers; renders nothing to the DOM — the row draws it. Gap-aware (a key
missing any price draws nothing).
Draws only — windowing stays upstream: raw daily OHLCV is a point-keyed
TimeSeries fed straight in, and a weekly / monthly bar is the identical call
on an aggregate(Sequence.calendar('week'), …) rollup (interval-keyed). This
supersedes BoxPlot shape='solid' for OHLC (which needed a quantile remap, a
body precompute, two overlaid layers for green/red, and a column-name tracker).
Cursor. Unlike BoxPlot, a candle participates in the crosshair x-snap
(it exposes plain sampleAt, not a consolidated cursorFlag), so the reticle
lands on candles. The readout keys on as and shows close by default; pass
showOHLC for the full four-pill quote.
A first-class OHLC candlestick draw layer — the financial sibling of BoxPlot. Reads four price columns (
open/high/low/close) ofseriesinto an OhlcSeries and draws one candle per key: theopen→closebody (direction-coloured) and thehigh–lowwick, over the key's slot x-span. Derives the body extents itself (min/maxof open/close) — the consumer never runs awithColumnprecompute. Registers into the enclosing Layers; renders nothing to the DOM — the row draws it. Gap-aware (a key missing any price draws nothing).Draws only — windowing stays upstream: raw daily OHLCV is a point-keyed
TimeSeriesfed straight in, and a weekly / monthly bar is the identical call on anaggregate(Sequence.calendar('week'), …)rollup (interval-keyed). This supersedesBoxPlot shape='solid'for OHLC (which needed a quantile remap, a body precompute, two overlaid layers for green/red, and a column-name tracker).Cursor. Unlike
BoxPlot, a candle participates in the crosshair x-snap (it exposes plainsampleAt, not a consolidatedcursorFlag), so the reticle lands on candles. The readout keys onasand showscloseby default; passshowOHLCfor the full four-pill quote.