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

The `percentile_band` kind (spec/04 §4.6), copied from visualize's
`Visualize.Chart.Mark.Shapes` percentile band.

| Channel | Role, family | Types | |
|---|---|---|---|
| `x` | position, `x` | time, number | req |
| `median` | position, `y` | number | req |
| `inner_lo`, `inner_hi` | position, `y` | number | |
| `outer_lo`, `outer_hi` | position, `y` | number | |

Parts: `fill`, `stroke`, `curve`. Paint: `fill` for the bands, `stroke` for the median.
Draws through `Macaw.Draw.Shape.Line` and `Macaw.Draw.Shape.Area` as
`Macaw.Draw.Shape.PercentileBand` composes them: the outer band (`class="outer"`, the
paint at `fill-opacity` `0.2`, no stroke), the inner band (`class="inner"`, `0.4`), then
the median line (`class="median"`, stroked, no fill). A band whose two channels are
absent is not drawn. No series: one band from all its rows. Budget: `4 × w`. Summary:
"percentile band chart", extremes over `median`. Gap breaking: all three paths break
together where any of their fields breaks.

---

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