Text
textBlock elementGraph
Freestanding text at (x, y) — a mark that is nothing but its label. Use it for annotations that belong to the plot itself rather than to any one mark: a region’s name, a caption inside the frame, a worked value.
Attributes
labelRequiredImplicit
rich-textanchor
Defaultmiddle
hidden
booleanDefaultfalse
lock
booleanDefaultfalse
Stacking order. Higher z renders on top; when omitted or equal, elements stack in document order (later on top).
Allowed in
Examples
text(label: local maximum; x: 2; y: 4.5)text(label: $R^2 = 0.97$; x: 8; y: 1; anchor: start)