Chart Draw
A metric chart that draws itself: the line reveals left to right, the number counts up, a marker finds the peak, and the range chips morph the line into the next series. Hover or arrow keys scrub the points.
pixikit.com/docs/blocks/illustrations/chart-draw
Customize
Curve
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
11| Name | Type | Default | Description |
|---|---|---|---|
series | ChartDrawSeries[] | DEFAULT_SERIES | The ranges, one per chip; each has its own points and labels. |
metric | string | "Active teams" | The name of the metric in the header. |
unit | string | "" | Text shown after the big number. |
curve | boolean | true | Smooths the line into a curve; off draws straight segments. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay or a range chip. |
loop | boolean | true | Plays again from the first range after the last hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |