/docsfor

Slope

Two moments, joined by their change.

import { Slope } from "diagrammatic";

Two surveys, five years apart, show the percentage of respondents using each medium weekly. Two columns and one line per medium make the shifts visible.

Weekly media use20202025videosocialmusictvgamingpodcastsprint

Illustrative data. Surveys, percent of respondents using each medium weekly.

fig. 06 · Weekly media use, 2020 against 2025

Video rises from 30 to 68 while TV falls from 70 to 30, so their lines cross. Podcasts rise from 8 to 21, more than doubling, while print falls from 20 to 8. Social and music decline by 10 and 4 points respectively.

Use it for
Before-and-after across many entities, where the slope is the story.
Watch out
Crossing lines get busy past a dozen entities; highlight a few and mute the rest.