Skip to content
Elements / Data

chart-rule

inside chart

Under a bar or line chart: a level drawn across the plot, such as a target, a budget or an average.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props

Props

"text"textWhat the level is, shown at its end, e.g. "Target".optional
yexpressionThe level, a number or a formula, e.g. y=50000 or y={avg(pluck(sales, 'revenue'))}.required
ifconditionShow only when this expression is true, e.g. if=done or if={count>0}. Every element takes it.—
tipstringA short explanation shown on hover, keyboard focus or a tap, e.g. tip="Orders not yet shipped": for a term or a number some people won't know, instead of more words on screen. It makes the element a Tab stop if it isn't one. Every element takes it.—

Only inside: chart

SayShape v0.1 is an early prototype under the MIT License. Status · GitHub