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

Copy Markdown View Source

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

ChannelRole, familyTypes
xposition, xtime, number, categoryone of x, y
yposition, ynumberone of x, y
seriesseriescategory, 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.