Sparkline¶
Tiny inline chart for showing trends.
Usage¶
Props¶
| Prop | Type | Default | Description |
|---|---|---|---|
data |
number[] |
required | Data points (normalized to 0–1) |
width |
number |
data.length |
Width in cells |
min |
number |
auto | Minimum value for scaling |
max |
number |
auto | Maximum value for scaling |
style |
TextStyle |
- | Optional style override |
Notes¶
- Use
min/maxto pin the scale when comparing multiple sparklines. - For multi-series data, render multiple sparklines in a
row.