# Difference area
URL: /diagrammatic/docs/charts/difference-area

The gap between two lines, shaded.

> 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 { DifferenceArea } from "diagrammatic";
```

Thirty weekdays of checkout POSTs. The interesting number is the gap, not either line.

- labels

  - 7 Jul
  - 8 Jul
  - 9 Jul
  - 10 Jul
  - 11 Jul
  - 14 Jul
  - 15 Jul
  - 16 Jul
  - 17 Jul
  - 18 Jul
  - 21 Jul
  - 22 Jul
  - 23 Jul
  - 24 Jul
  - 25 Jul
  - 28 Jul
  - 29 Jul
  - 30 Jul
  - 31 Jul
  - 1 Aug
  - 4 Aug
  - 5 Aug
  - 6 Aug
  - 7 Aug
  - 8 Aug
  - 11 Aug
  - 12 Aug
  - 13 Aug
  - 14 Aug
  - 15 Aug

- series

  - actual

    - 14.2
    - 13.8
    - 15.1
    - 14.6
    - 13.2
    - 14
    - 13.6
    - 14.8
    - 15.4
    - 14.1
    - 22.6
    - 24.1
    - 23.4
    - 21.8
    - 19.6
    - 18.4
    - 17.2
    - 16.8
    - 16.1
    - 15.4
    - 15
    - 14.6
    - 14.8
    - 15.2
    - 14.9
    - 14.4
    - 14.1
    - 13.9
    - 14
    - 13.7

  - forecast

    - 14.5
    - 14.6
    - 14.7
    - 14.6
    - 14.4
    - 14.3
    - 14.2
    - 14.4
    - 14.5
    - 14.4
    - 14.6
    - 14.7
    - 14.6
    - 14.5
    - 14.4
    - 14.3
    - 14.4
    - 14.5
    - 14.6
    - 14.5
    - 14.4
    - 14.3
    - 14.4
    - 14.6
    - 14.5
    - 14.4
    - 14.3
    - 14.4
    - 14.5
    - 14.4

- unit

  k

* aspect

  2.2

* title

  Checkout POSTs against forecast

* yTicks

  - - at

      14

    - label

      14k

  - - at

      18

    - label

      18k

  - - at

      24

    - label

      24k

* guides

  - - at

      18

    - label

      capacity 18k

* regions

  - - from

      10

    - to

      15

    - label

      sale week

* actual

  - name

    actual

  - data

    - 14.2
    - 13.8
    - 15.1
    - 14.6
    - 13.2
    - 14
    - 13.6
    - 14.8
    - 15.4
    - 14.1
    - 22.6
    - 24.1
    - 23.4
    - 21.8
    - 19.6
    - 18.4
    - 17.2
    - 16.8
    - 16.1
    - 15.4
    - 15
    - 14.6
    - 14.8
    - 15.2
    - 14.9
    - 14.4
    - 14.1
    - 13.9
    - 14
    - 13.7

* reference

  - name

    forecast

  - data

    - 14.5
    - 14.6
    - 14.7
    - 14.6
    - 14.4
    - 14.3
    - 14.2
    - 14.4
    - 14.5
    - 14.4
    - 14.6
    - 14.7
    - 14.6
    - 14.5
    - 14.4
    - 14.3
    - 14.4
    - 14.5
    - 14.6
    - 14.5
    - 14.4
    - 14.3
    - 14.4
    - 14.6
    - 14.5
    - 14.4
    - 14.3
    - 14.4
    - 14.5
    - 14.4

* labels

  - 7 Jul
  -
  -
  -
  -
  - 14 Jul
  -
  -
  -
  -
  - 21 Jul
  -
  -
  -
  -
  - 28 Jul
  -
  -
  -
  -
  - 4 Aug
  -
  -
  -
  -
  - 11 Aug
  -
  -
  -
  -

Illustrative data. Checkout POST per day versus the Friday forecast. 7 Jul to 15 Aug.

fig. 45 · Actual requests against the Friday forecast

Actual requests move above forecast on 21 Jul and cross the 18k capacity guide that day. They remain above 18k through 28 Jul, while the forecast stays between 14.2k and 14.7k.

- Use it for

  Actual against target where being above or below is the story.

- Watch out

  Shade the gap, not the lines, and reserve the two hues for sign.