SparklineChart #

Renders a compact SVG sparkline for trend visualization in docs and status sections.

Props #

PropTypeRequiredDescription
datanumber[] | { value: number }[]YesOrdered trend values.
widthnumberNoInternal SVG width. Default: 560.
heightnumberNoInternal SVG height. Default: 120.
strokeWidthnumberNoLine thickness. Default: 3.
classNamestringNoOptional wrapper class names.

Live example #

Code #

mdx
<SparklineChart data={[72, 75, 71, 80, 82, 84, 83, 89, 94, 92]} />