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

The `interval` kind (spec/04 §5.1): an error bar per row, new in the second cut.

| Channel | Role, family | Types | |
|---|---|---|---|
| `x` | position, `x` | time, number, category | one of `x`, `y` |
| `lo`, `hi` | position, `y` (`x` across) | number | req |
| `y` | position, `y` | number, category | one of `x`, `y` |
| `series` | series | category, text, number | |

Options: `cap` (`6`, the caps' width in pixels). Parts: `stroke`. Paint: `stroke`. One
group per row: a line from `lo` to `hi` at `x` with a cap across each end. Given `y`
instead of `x` it draws across: `lo` and `hi` are then positions along `x`, which the
model's table reads as it reads `x0` and `x1` (`Macaw.Frame.Layer.Channel.read_as/3`).
Needs no statistic. Anchor: the bar's `hi` end. Budget: `w`. Summary: "error bar chart".

---

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