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

Copy Markdown View Source

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

ChannelRole, familyTypes
xposition, xtime, number, categoryreq
yposition, ynumberreq
seriesseriescategory, text, number

Options: closed (boolean; true by default on a full turn over a categorical angle). Parts: stroke, curve. Paint: stroke (fill: none). One path per series through Macaw.Draw.Shape.Line in the style's curve. A row whose x or y is unplaced, or where gap breaking breaks (Macaw.Frame.Gaps), breaks the path; a series none of whose rows is placed draws no element. With closed in a polar frame the first row is appended after the last at its angle plus the sweep; a closed curve closes itself. A linear cartesian line of more than 4 × w points draws M4 of its device pixel columns; with a delivery's claim it is cut into a settled and a provisional part. Anchor: the series' last placed point. Extent: :none. Budget: 4 × w. Summary: "line chart", "radar chart" in a polar frame.