Skip to content
Sparkline card, light
Light
Sparkline card, dark
Dark

Every state

  • Sparkline card, default, light
    Sparkline card, default, dark

    default

  • Sparkline card, hover, light
    Sparkline card, hover, dark

    hover

  • Sparkline card, focus, light
    Sparkline card, focus, dark

    focus

  • Sparkline card, inspect, light
    Sparkline card, inspect, dark

    inspect

  • Sparkline card, down, light
    Sparkline card, down, dark

    down

Props

PropTypeDefaultWhat it does
titlestring"Orders"Title text.
periodstring"Last 30 days"The period the card covers ("Last 30 days").
valuesnumber[][62, 58, 71, 66, 74, 69, 52, 55, 78, 81, 77, 84, 70, 61, 66, 88, 92, 85, 90, 83, 72, 76, 94, 97, 91, 99, 86, 80, 102,…One value per point, oldest first. The figure is the sum unless you pass `value`.
previousnumber[] | null[55, 60, 57, 63, 59, 66, 48, 51, 64, 62, 68, 65, 58, 50, 56, 71, 69, 74, 70, 67, 57, 60, 73, 71, 76, 78, 66, 63, 79, 82]The same points one period earlier, drawn dashed. Null or left out: no comparison line.
labelsstring[]daysA label per point for the readout and the table ("Tue 12 Nov").
valuenumber | nullnullThe big figure. Left out: the sum of `values`.
changenumber | null21.6Change against the previous period, in percent (12.4 = +12.4 %). Null or left out: no change line.
unitstring"orders"What a value counts, for the readout ("orders").
currentLabelstring"This period"Names of the two lines in the legend.
previousLabelstring"Period before"Previous label.
changeLabelstring"vs the 30 days before"Words around the change ("vs last month").
formatIntl.NumberFormatOptions{ maximumFractionDigits: 0 }Number style for the figure and the readout.
localestring"en-IE"Locale for numbers and dates.
defaultActivenumber | nullnullThe point the readout starts on (index). Left out: the last point.
classNamestring–Extra classes on the outer element.

More chart cards

All 8

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans