Charts
Sparkline
A word-sized trend with an emphasized endpoint.
npx dtheo@latest add sparkline| Joint | Trend | Latest |
|---|---|---|
| Hip pitch | 17.6 %, over the limit | |
| Knee | 4.9 % | |
| Ankle | 3.7 % |
When to use
- Trends inside tables and metric tiles
- Values people must read exactly: show the number next to it
- The main chart of a view: use Line chart with axes
API
values- The series, oldest first. The last point is emphasized.
number[] domain- Shared [min, max] so sparklines in one table are comparable.
[number, number] tone= 'primary'- Use critical only when the latest value breaks a limit.
Tone