Sparkline
dataMiniature inline chart for showing trends within a small space.
Preview
No preview available
Check the code examples below.
Installation
npm install @launchapp/design-systemImport
import { Sparkline } from "@launchapp/design-system";Examples
Revenue trend sparkline
<Sparkline data={[30, 45, 28, 60, 72, 55, 80, 95]} type="area" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
data* | number[] | — | Array of numeric values to plot. |
type | "line" | "bar" | "area" | "line" | Chart type. |
width | number | 100 | Chart width in pixels. |
height | number | 32 | Chart height in pixels. |