Macaw.Frame.Layers.Violin (macaw_frame v0.1.0)

Copy Markdown View Source

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

ChannelRole, familyTypes
xposition, xcategoryreq
yposition, ynumberreq
densitysize (pixels before scaling)numberreq
seriesseriescategory, 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".