# Slope
URL: /diagrammatic/docs/charts/slope

Two moments, joined by their change.

> For AI agents: a documentation index is available at [llms.txt](/llms.txt). Use `.md` for canonical markdown pages; `.mdx` is kept as a backwards-compatible alias on supported URL paths.

```
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.

- labels

  - video
  - social
  - music
  - tv
  - gaming
  - podcasts
  - print

- series

  - 2020

    - 30
    - 60
    - 45
    - 70
    - 25
    - 8
    - 20

  - 2025

    - 68
    - 50
    - 41
    - 30
    - 35
    - 21
    - 8

- unit

  %

* aspect

  2.2

* title

  Weekly media use

* items

  - - label

      video

    - from

      30

    - to

      68

  - - label

      social

    - from

      60

    - to

      50

  - - label

      music

    - from

      45

    - to

      41

  - - label

      tv

    - from

      70

    - to

      30

  - - label

      gaming

    - from

      25

    - to

      35

  - - label

      podcasts

    - from

      8

    - to

      21

  - - label

      print

    - from

      20

    - to

      8

* highlight

  video

* labels

  - 2020
  - 2025

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.