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

Copy Markdown View Source

The needle kind (spec/04 §4.9), copied from visualize's Visualize.Chart.Mark.Shapes needle.

ChannelRole, familyTypes
xposition, anglenumberreq
yradius, rnumber
seriesseriescategory, text, number

Models: [:polar]; elsewhere {:invalid_for, "needle"} at kind. Options: inner_radius (0), width (6), tail (0), hub (width when absent), cap (point, round, flat; point). Parts: fill, stroke. Not bent: drawn in the plane through Macaw.Draw.Shape.Needle, a filled tapered path from the hub to the tip at angle(x) and r(y) (the outer radius when y is absent), plus the hub circle. One needle per row. Anchor: the tip, outward by default, radii {inner_radius, length}. Budget: w. Makes its frame a "gauge".