Visualization VocabularyDataviz vocabulary
Schéma : sparkline
Dessin : Adrien Taudière (CC0)
Exemple ggplot2 : sparkline
Adrien Taudière (CC0); code R ↓; données : gapminder (Bryan 2025) (CC BY 4.0)

graphique

sparkline

aussi : mini-graphique

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

sparkline

Small axis-free chart embedded in running text.

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

Classification

  • graphique
  • courbes et aires › courbes
  • évolution dans le temps

Canaux

Attestation

Littérature scientifique

OpenAlex : 201 articles depuis 2006, dont 28 % ces cinq dernières années; surtout en Computer Science, Mathematics, Business, Management and Accounting; Wikidata

Références séminales

Paquets R

Code R de l'exemple ggplot2

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 dans le corpus; indexé par 8 ouvrages

Afficher les 24 sources

Citer cette fiche

Adresse stablehttps://dataviz.adrientaudiere.com/terme/sparkline.html

RéférenceTaudière Adrien. 2026. sparkline. Dans Visualization Vocabulary, version 1.0.0. IdEst. https://dataviz.adrientaudiere.com/terme/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/terme/sparkline.html},
  note      = {CC0 1.0}
}

Fiche créée le 13/10/2026. Texte modifié le 12/11/2026. Images modifiées le 12/11/2026. Chiffres calculés le 22/10/2026.