Expand description
Candlestick (OHLC) chart. Each bar is an open/high/low/close tuple drawn
as a wick (high→low) + a body (open↔close), coloured up/down from theme
colours. The price→pixel mapping (OhlcLayout) is a pure function with
tests so the geometry is verifiable headlessly.
Structs§
- Candlestick
State - Persistent, observable interaction state (FC-3): the bar index the pointer last hovered. Serialized so it round-trips headlessly.
- Candlestick
View - A candlestick chart over a series of OHLC bars.
- Ohlc
- One OHLC bar.
labelis the x-axis tick (e.g. a date). - Ohlc
Layout - The price→pixel mapping for a candlestick chart: where each bar’s x-centre
sits, the body half-width, and a
y_of(price)closure source. Pure data so it can be asserted without a painter.
Enums§
- Candlestick
Effect - FC-8: the candlestick chart does no I/O.
- Candlestick
Msg - FC-2 input surface. One input: the hovered bar changing (hit-tested purely in
CandlestickView::render, applied inCandlestickView::update).