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

The `segment` kind (spec/04 §5.1): a straight segment per row, new in the second cut,
for slope charts and dumbbells (with `circle` or `symbol` layers at each end).

| Channel | Role, family | Types | |
|---|---|---|---|
| `x0`, `x1` | position, `x` | time, number, category | req |
| `y0`, `y1` | position, `y` | number, category | req |
| `series` | series | category, text, number | |

Parts: `stroke`. Paint: `stroke`. Its ends are positions, never a band's edges: on a
band scale each end is the band's center, so a slope chart's ends sit on its two
columns. One path per row from `(x0, y0)` to `(x1, y1)`, bent in polar and drawn at
projected pixels in a geographic frame. Needs no statistic. Anchor: the `(x1, y1)` end.
Budget: `w`. Summary: "dumbbell chart" when both ends read one `y` (or one `x`) field,
else "slope chart", extremes over `y1`.

---

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