/docsfor

Dot plot

One dot per category on a common scale.

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.

Median salary by role$100k$150k$200kdistinguished · n=6director · n=11principal · n=28staff · n=64em · n=19senior · n=112pm · n=41mid · n=98junior · n=74intern · n=33

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.