Skip to content
PixiKit

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
NameTypeDefaultDescription
seriesChartDrawSeries[]DEFAULT_SERIESThe ranges, one per chip; each has its own points and labels.
metricstring"Active teams"The name of the metric in the header.
unitstring""Text shown after the big number.
curvebooleantrueSmooths the line into a curve; off draws straight segments.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for a click on replay or a range chip.
loopbooleantruePlays again from the first range after the last hold.
speednumber1Playback speed multiplier.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related