Edward Tufte
Sparklines
Data-intense, design-simple, word-sized graphics. A sparkline earns its place by sitting where the number would have gone, so the reader gets the history without leaving the sentence or the row.
In running text
Over the last 80 readings the patient's blood glucose stayed inside the normal range on of them; every excursion runs upward, peaking at mg/dL, and the low was . Harbor Instruments finished the year from its first close, but the path ran through a drawdown of , which a single year-over-year number would never show. Port Avalon's daily high traced the expected year, from in winter to in summer, while its monthly rainfall was heaviest in .
In a table
Twelve fictional securities, last 250 sessions
Sorted by change over the period. Toggle the sparkline scale and watch which rows become interesting.
| Security | 250 sessions | Last | Change | Low | High |
|---|
Win and loss
An 82-game season, six fictional clubs
One tick per game in schedule order: up for a win, down for a loss. Sorted by wins.
Notes
- The definition is from Beautiful Evidence: "data-intense, design-simple, word-sized graphics." The context, a sentence or a table row, supplies the labels, so the graphic needs none.
- At word size the height is fixed by the type, which means choosing the width is choosing the slope. Cleveland's banking to 45 degrees matters more here than in a full chart, and most dashboard sparklines are far too wide and flat.
- Per-row scaling is the single most common way sparklines mislead in business dashboards. If the question is "which moved most," use a common scale; if it is "what shape did each take," use own ranges and print the numbers.
- Pushback: sparklines in flowing prose are beautiful in print and fragile on screens. Reflow can strand a graphic at a line break, and screen readers need the aria label to say what the eye sees. In practice they belong in tables far more often than in paragraphs.
Source: all series are synthetic and fictional, generated in-page with a seeded random number generator (Lab.rng, seeds 1983 and up). Patient, securities, city and clubs are invented.