Visualization VocabularyDataviz vocabulary
Diagram: sparkline
Drawing: Adrien Taudière (CC0)
ggplot2 example: sparkline
Adrien Taudière (CC0); R code ↓; data: gapminder (Bryan 2025) (CC BY 4.0)

chart

sparkline

Small axis-free chart embedded in running text.

sparkline

aussi : mini-graphique

Petit graphique sans axes inséré dans le texte.

Terme de Tufte ; pas d'équivalent français stabilisé.

Classification

  • chart
  • lines and areas › lines
  • change over time

Channels

Attestation

Scientific literature

OpenAlex: 201 papers since 2006, 28% in the last five years; mostly in Computer Science, Mathematics, Business, Management and Accounting; Wikidata

Seminal references

R packages

R code of the ggplot2 example

library(ggplot2)
library(dplyr)
library(gapminder)

shown <- c("Cambodia", "China", "Rwanda", "Botswana", "Zimbabwe", "Iraq", "Japan")

## Each line on its own scale, in a band of height 0.7 on its own row.
lines <- gapminder |>
  filter(country %in% shown) |>
  mutate(row = match(country, rev(shown))) |>
  group_by(country) |>
  mutate(y = row + 0.7 * (lifeExp - min(lifeExp)) / (max(lifeExp) - min(lifeExp))) |>
  ungroup()

last <- lines |>
  filter(year == 2007)

p <- ggplot(lines, aes(x = year, y = y, group = country)) +
  geom_line(linewidth = 0.5, colour = "#9b2367") +
  geom_point(data = last, size = 1.3, colour = "#9b2367") +
  geom_text(data = last, aes(x = 1946, y = row + 0.35, label = country), hjust = 1, size = 3.2) +
  geom_text(data = last, aes(x = 2010, label = paste(round(lifeExp), "years")), hjust = 0, size = 3.2) +
  scale_x_continuous(limits = c(1922, 2030)) +
  labs(title = "Only Japan's life expectancy never fell",
       subtitle = "Life expectancy from 1952 to 2007, each line on its own scale; value in 2007",
       x = NULL, y = NULL,
       caption = "Data: Gapminder, via the gapminder R package") +
  theme_lex_viz(grid = "", arrows = "") +
  theme(axis.text = element_blank())

Sources (24)

72 occurrences in the corpus; indexed by 8 books

Show the 24 sources

Cite this entry

Stable addresshttps://dataviz.adrientaudiere.com/en/term/sparkline.html

ReferenceTaudière Adrien. 2026. sparkline. In Visualization Vocabulary, version 1.0.0. IdEst. https://dataviz.adrientaudiere.com/en/term/sparkline.html

BibTeX
@incollection{taudiere2026-sparkline,
  author    = {Taudière, Adrien},
  title     = {sparkline},
  booktitle = {Visualization Vocabulary},
  year      = {2026},
  version   = {1.0.0},
  publisher = {IdEst},
  url       = {https://dataviz.adrientaudiere.com/en/term/sparkline.html},
  note      = {CC0 1.0}
}

Page created on 2026-10-13. Text last changed on 2026-11-12. Images last changed on 2026-11-12. Numbers computed on 2026-10-22.