# Dot plot
URL: /diagrammatic/docs/charts/dot-plot

One dot per category on a common scale.

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

A compensation review lays the ladder on one axis. Dots, not bars, because the gaps are the finding. Each label carries the sample behind the median.

- labels

  - distinguished · n=6
  - director · n=11
  - principal · n=28
  - staff · n=64
  - em · n=19
  - senior · n=112
  - pm · n=41
  - mid · n=98
  - junior · n=74
  - intern · n=33

- series

  - median

    - $222k
    - $208k
    - $204k
    - $178k
    - $162k
    - $148k
    - $126k
    - $118k
    - $88k
    - $64k

* aspect

  1.2

* title

  Median salary by role

* items

  - - label

      distinguished · n=6

    - value

      222000

  - - label

      director · n=11

    - value

      208000

  - - label

      principal · n=28

    - value

      204000

  - - label

      staff · n=64

    - value

      178000

  - - label

      em · n=19

    - value

      162000

  - - label

      senior · n=112

    - value

      148000

  - - label

      pm · n=41

    - value

      126000

  - - label

      mid · n=98

    - value

      118000

  - - label

      junior · n=74

    - value

      88000

  - - label

      intern · n=33

    - value

      64000

* ticks

  - 100000
  - 150000
  - 200000

* highlight

  em · n=19

Illustrative data. Engineering and product cash compensation, April 2025. n = 486.

fig. 16 · Median salary by role, with n

Intern through staff still steps about $24k to $30k. Then the ladder compresses: principal is only $26k above staff, distinguished another $18k. An EM sits between senior and staff; a director sits on principal. PM tracks mid, not senior.

- Use it for

  Precise category values without the visual weight of bars.

- Watch out

  It needs a visible scale; dots floating in space rank but do not measure.