Line
lineBlock elementGraph
A path through a list of points. `interpolate: step` holds each value until the next x and then jumps — a staircase, which is what a cumulative distribution, a tally, or a price that only changes on the hour actually looks like — and draws the dots at each jump: filled where the function lands, hollow where it left.
Attributes
dataRequiredImplicit
parametised-coordinate-listinterpolate
interpolationDefaultlinear
endpoints
booleanDefaulttrue
risers
booleanDefaultfalse
label
rich-textDraw order within the pane.
Allowed in
Examples
line(data: (0, 0), (2, 2), (4, 1); colour: pink)line(data: (0, 0), (1, 0.5), (2, 1); interpolate: step)line(data: (0, 0), (1, 0.5), (2, 1); interpolate: step; risers: true; endpoints: false)