Curve
curveBlock elementGraph
A mathematical function or expression plotted as a curve. Supports domain/range restriction for specific intervals.
Attributes
expressionRequiredImplicit
parametised-expressionendpoints
booleanDefaulttrue
label
rich-texthidden
booleanDefaultfalse
lock
booleanDefaultfalse
Stacking order. Higher z renders on top; when omitted or equal, elements stack in document order (later on top).
Derived attributes
Computed while the element renders — read one with #id.name in attribute position or !value:#id.name() in prose, never set.
maxDerived
minDerived
Allowed content
Body { }Inline Chalk content (formatted text, inline math, links, and inline elements)
Allowed in
Examples
curve(expression: x^2; colour: blue)curve(expression: sin(x); domain: [-3.14, 3.14])Notes
- Give a curve a node id — `curve#flight(f: …)` — to let `cue.trace` follow it with `path: #flight`.