Skip to main content

Sparkline

Show a trend at a glance, in a line without axes.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
valuesnumber[]-The values, oldest first.
The values, oldest first.
ariaLabelstring-What the line shows, for screen readers, such as "Revenue, rising".
What the line shows, for screen readers, such as "Revenue, rising".
widthnumber-
heightnumber32The drawing's height in pixels.
The drawing's height in pixels.
dotbooleantrueA dot on the latest value.
A dot on the latest value.
classNamestring-