<Sparkline data={[12, 18, 22, 19, 25, 28, 35, 32, 42, 48]} width={120} height={32} />
Sparkline
src/charts/Sparkline.tsx
Import
import { Sparkline } from "@ossrandom/design-system/charts";
Peer dependencies
None — pure SVG / canvas2d render path.
Example
API
extends BaseProps
| Prop | Type |
|---|---|
data required |
readonly number[] |
width |
number |
height |
number |
stroke |
string |
fill |
string |
showArea |
boolean |
strokeWidth |
number |