# `Macaw.Frame.Layers.Candle`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/layers/candle.ex#L1)

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

| Channel | Role, family | Types | |
|---|---|---|---|
| `x` | position, `x` | time, number | req |
| `open`, `high`, `low`, `close` | position, `y` | number | req |

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`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
