Components › Charts
Sparkline
A small trend line for tables, stats and cards.
Installation
npx plankui@latest add sparklineUsage
import { Sparkline } from "@/components/ui/sparkline";
<Sparkline values={[12, 14, 13, 18, 21]} area showLast />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| values | number[] | required | The series. |
| area / showLast | boolean | false | Fill and last-point marker. |
| width / height / color | number / number / string | 120 / 36 / accent | Size and colour. |