Components / Charts
Sparkline
A tiny inline trend line.
@ruckc/truss-chart Charts
Import
import { Sparkline } from '@ruckc/truss-chart';
import '@ruckc/truss-chart/charts.css'; // series palette Playground
values
width
height
API
| Prop | Type | Default | Description |
|---|---|---|---|
values required | (number | null)[] | — | The numbers to plot. |
width | number | 120 | Width in pixels (or any CSS length). |
height | number | 28 | Height in pixels (or any CSS length). |
color | string | seriesColor(0) | Series colour (a CSS colour or `var(--trc-sN)` token). |
label | string | 'Trend' | Visible label shown above the control. |