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

The `box` kind (spec/04 §5.1): a box plot's box per row, new in the second cut.

| Channel | Role, family | Types | |
|---|---|---|---|
| `x` | position, `x` | category | req |
| `q1`, `median`, `q3` | position, `y` | number | req |
| `lo`, `hi` | position, `y` | number | |
| `series` | series | category, text, number | |

Options: `width` (`1`, the share of the band the box spans). Parts: `fill`, `stroke`.
Paint: `fill`. One group per row: a box from `q1` to `q3` across the band, the median
line across it, and whiskers to `lo` and `hi` with caps half the box's width, each where
given. The statistic is never the kind's: `q1`, `median`, `q3`, `lo` and `hi` are read
from columns, the `box` aggregate's (macaw_data#309); its outliers are a `symbol` layer
over the step's outlier output. Anchor: the box's center. Extent: its width. Budget:
`ceil(w / 2)`. Summary: "box plot", extremes over `median`.

---

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