Components
Sparkline
Inline mini chart using block characters for trend data.
Visualize time-series data inline using Unicode block characters (▁▂▃▄▅▆▇█).
Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
data | number[] | — | Data points (required) |
width | number | 20 | Width in columns |
height | number | 1 | Height in rows (1 or 2) |
label | string | — | Label before sparkline |
showRange | boolean | false | Show min/max values |
showLatest | boolean | true | Show latest value |
color | string | — | Color override |
theme | InkUITheme | darkTheme | Color theme |