Time Series
Sparkline
Tiny inline chart with no axes that shows trend in the context of text or tables.
Weekly Trend
Compact inline view
View data (8 rows)
| Day | Value |
|---|---|
| Mon | 42 |
| Tue | 45 |
| Wed | 40 |
| Thu | 48 |
| Fri | 52 |
| Sat | 55 |
| Sun | 50 |
| Mon2 | 58 |
Use a sparkline when…
- Inline trend indicators
- Dashboard KPI cards
- Tables with trend columns
Avoid when…
- When exact values matter
- Standalone visualization
Data it needs
| Property | Value |
|---|---|
| Min Rows | 5 |
| Min Columns | 2 |
| Column Types | datenumber |
Visual anatomy
Marks
line
Channels
position-xposition-y
Axes
-
Guiding principles
Consider instead
Common mistakes
Adding axes to a sparkline (defeats the purpose)
Using for unordered data
History
Concept defined by Edward Tufte in Beautiful Evidence (2006) as 'datawords.'
Accessibility notes
Provide a one-line text/sr-only trend summary alongside the visual (e.g., 'rising, latest 58, +38% over 8 days'); without axes the screen-reader has nothing else to grab onto.
Related reading
Got data? Let's see what works.
Drop your CSV. You'll get a Sparkline plus four alternatives - ranked by which one actually fits your data best.