# Histogram
URL: /diagrammatic/docs/charts/histogram

Frequency by bin.

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

Eighteen 50ms bins, one day of traffic. The dashed outline is the same weekday a week earlier. The shape is the regression; the median is the alibi.

- series

  - 13 Aug

    - 12
    - 28
    - 54
    - 96
    - 148
    - 212
    - 268
    - 244
    - 186
    - 132
    - 88
    - 56
    - 34
    - 22
    - 14
    - 9
    - 6
    - 4

  - 6 Aug

    - 18
    - 36
    - 72
    - 124
    - 188
    - 246
    - 274
    - 228
    - 164
    - 108
    - 70
    - 44
    - 26
    - 16
    - 10
    - 6
    - 3
    - 2

* aspect

  2.1

* title

  Checkout POST latency

* bins

  - 12
  - 28
  - 54
  - 96
  - 148
  - 212
  - 268
  - 244
  - 186
  - 132
  - 88
  - 56
  - 34
  - 22
  - 14
  - 9
  - 6
  - 4

* compare

  - 18
  - 36
  - 72
  - 124
  - 188
  - 246
  - 274
  - 228
  - 164
  - 108
  - 70
  - 44
  - 26
  - 16
  - 10
  - 6
  - 3
  - 2

* marker

  - at

    6.96

  - label

    median 348ms

* guides

  - - at

      4

    - axis

      x

    - label

      200ms

  - - at

      16

    - axis

      x

    - label

      SLO 800ms

* labels

  - 0
  - 200
  - 400
  - 600
  - 800

Illustrative data. Checkout POST, 13 Aug 2025, 1,613 sampled requests. Compare = 6 Aug.

fig. 28 · Checkout POST, one Wednesday

The mass still sits near 350ms, but the right tail past 700ms has thickened since last Wednesday. The last four bins contain 33 requests against 21 a week earlier. The median at 348ms would have called the day fine.

- Use it for

  The shape of one variable: skew, spread, and outliers.

- Watch out

  Bin width changes the story; try several before trusting one.