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

The `violin` kind (spec/04 §5.1): a mirrored area per category, new in the second cut.

| Channel | Role, family | Types | |
|---|---|---|---|
| `x` | position, `x` | category | req |
| `y` | position, `y` | number | req |
| `density` | size (pixels before scaling) | number | req |
| `series` | series | category, text, number | |

Options: `width` (`1`, the share of the band the widest violin spans). Parts: `fill`,
`stroke`. Paint: `fill`. The rows are a density estimate's points, the `density`
operation's (macaw_data#309), never the kind's own: each category's rows, in `y` order,
draw one closed path mirrored about the band's center, its half-width at each point the
point's density scaled to the band, so the densest point of the layer spans the band.
The path is keyed by its category's first row. Budget: `4 × w`. Summary: "violin plot".

---

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