# Numbers and charts

### StatReveal
One big number that counts up, a bar that fills to match, and a label under it.
props: value: number; prefix?: string = ""; suffix?: string = ""; decimals?: 0–3 = 0; label?: string = ""; size?: 60–400 = 250 (the number's type size; the bar and label follow); bar?: 0–1 = 0.64 (how full the bar ends up); color?: color = "accent"; bounce?: 0–0.9 = 0.35; seconds?: 0.2–4 = 1.1 (how long the count takes)
example: {"el":"StatReveal","value":82,"suffix":"%","label":"of drafts need no second pass"}

### BarChart
Bars that grow one after another with a spring; each has its number counting up on top and a label under it.
props: items: [{label: string, value: number}]; max?: number = 100 (the value a full-height bar stands for); h?: 160–1200 = 460; w?: 10–300 = 84 (one bar's width); color?: color = "accent"; each?: 0–1 = 0.09; bounce?: 0–0.9 = 0.35
example: {"el":"BarChart","items":[{"label":"Mon","value":30},{"label":"Tue","value":55},{"label":"Wed","value":90}]}

### LineChart
A smooth line that draws itself through the values, a dot riding its end, the area under it tinted.
props: values: [number]; w?: 100–1060 = 760; h?: 60–1000 = 340; color?: color = "accent"; seconds?: 0.2–8 = 1.6; area?: true|false = true
example: {"el":"LineChart","values":[4,9,7,15,13,24,31]}

### DragReveal
A slider that drags itself from one state to another. The card wipes from the first label to the second while a percentage and a ring follow and the corners round off: one piece of state (drag) drives every part.
props: before?: string = "RAW"; after?: string = "READY"; delay?: 0–20 = 0.8 (seconds after it starts before the drag begins); seconds?: 0.2–10 = 2.4 (how long the drag takes); w?: 200–1000 = 760; h?: 200–1300 = 820; color?: color = "accent>accent2"; tilt?: -20–20 = 3 (degrees the card leans mid-drag)
example: {"el":"DragReveal","before":"RAW","after":"READY"}
