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

The `rule` kind (spec/04 §4.5), copied from visualize's `Visualize.Chart.Mark.Shapes`
rule.

| Channel | Role, family | Types | |
|---|---|---|---|
| `x` | position, `x` | time, number, category | one of `x`, `y` |
| `y` | position, `y` | number | one of `x`, `y` |
| `series` | series | category, text, number | |

Parts: `stroke`. Paint: `stroke` (`fill: none`), set on the rule's line. One group per
row through `Macaw.Draw.Shape.Rule`: at `x`, a vertical line across the plot height; at
`y` in cartesian, a horizontal line across the plot width with its label at the left
end, 3 in and 3 above (visualize #565). A rule outside the plot draws nothing, with its
label. In polar, `x` is a spoke over the `r` range and `y` an arc over the sweep at
`r(y)`. A rule's reading feeds its scale's domain. Budget: `w`. Auxiliary.

---

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