Segment
segmentBlock elementGraph
A line segment between two points (x1, y1) and (x2, y2). Use for distances, measurements, or line construction.
Attributes
startRequiredImplicit
coordinatelabel
rich-texthidden
booleanDefaultfalse
lock
booleanDefaultfalse
Stacking order. Higher z renders on top; when omitted or equal, elements stack in document order (later on top).
Allowed content
Body { }Inline Chalk content (formatted text, inline math, links, and inline elements)
Allowed in
Examples
segment(start: (0, 0); end: (2, 1))segment(start: (-2, 1); end: (1, -1); colour: grey)