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

Copy Markdown View Source

The segment kind (spec/04 §5.1): a straight segment per row, new in the second cut, for slope charts and dumbbells (with circle or symbol layers at each end).

ChannelRole, familyTypes
x0, x1position, xtime, number, categoryreq
y0, y1position, ynumber, categoryreq
seriesseriescategory, text, number

Parts: stroke. Paint: stroke. Its ends are positions, never a band's edges: on a band scale each end is the band's center, so a slope chart's ends sit on its two columns. One path per row from (x0, y0) to (x1, y1), bent in polar and drawn at projected pixels in a geographic frame. Needs no statistic. Anchor: the (x1, y1) end. Budget: w. Summary: "dumbbell chart" when both ends read one y (or one x) field, else "slope chart", extremes over y1.