Polygon
polygonBlock elementGraph
A filled or unfilled polygon shape. Connect multiple points to create custom shapes.
Attributes
dataRequiredImplicit
parametised-coordinate-listlabel
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
polygon(data: (0,0),(2,0),(1,2))polygon(data: (-1,-1),(1,-1),(0,1); fill: false; colour: teal)