Macaw.Frame.Layers.Candle (macaw_frame v0.1.0)

Copy Markdown View Source

The candle kind (spec/04 §5.1): a candlestick, or an OHLC bar, per row, new in the second cut.

ChannelRole, familyTypes
xposition, xtime, numberreq
open, high, low, closeposition, ynumberreq

Options: ohlc (false: ticks instead of a body), width (the body's width in pixels; by default seven tenths of the narrowest step between candles). Parts: fill, stroke. Paint: none of its own: a candle is the theme's good when it closes at or above its open and bad otherwise, each with its role's dash on its outline (Macaw.Layers.Theme .cue/1), so a rise and a fall read apart without their hues. One group per row: a wick from low to high and a body from open to close; with ohlc, a bar from low to high with the open's tick left and the close's right. The readings are the bucket's first, max, min and last (macaw_data#309), never the kind's own. Budget: ceil(w / 3). Summary: "candlestick chart", or "OHLC chart", extremes over close.