# Range bar
URL: /diagrammatic/docs/charts/range-bar

A span per category, not a single value.

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

Compensation review. Each row is the p25 to p75 cash band of a closed role, the tick is the median we actually paid. The question is where the ladder overlaps.

- labels

  - intern
  - junior
  - mid
  - senior
  - staff
  - principal
  - em
  - director

- series

  - p25

    - 38000
    - 62000
    - 86000
    - 128000
    - 158000
    - 188000
    - 142000
    - 196000

  - median

    - 44000
    - 71000
    - 99000
    - 146000
    - 178000
    - 208000
    - 164000
    - 218000

  - p75

    - 52000
    - 84000
    - 118000
    - 168000
    - 204000
    - 236000
    - 188000
    - 248000

* aspect

  1.35

* title

  Closed offer bands

* items

  - - label

      intern

    - from

      38000

    - to

      52000

    - at

      44000

  - - label

      junior

    - from

      62000

    - to

      84000

    - at

      71000

  - - label

      mid

    - from

      86000

    - to

      118000

    - at

      99000

  - - label

      senior

    - from

      128000

    - to

      168000

    - at

      146000

  - - label

      staff

    - from

      158000

    - to

      204000

    - at

      178000

  - - label

      principal

    - from

      188000

    - to

      236000

    - at

      208000

  - - label

      em

    - from

      142000

    - to

      188000

    - at

      164000

  - - label

      director

    - from

      196000

    - to

      248000

    - at

      218000

* xTicks

  - - at

      50000

    - label

      50k

  - - at

      125000

    - label

      125k

  - - at

      200000

    - label

      200k

* guides

  - - at

      150000

    - label

      150k

Illustrative data. Cash offer bands, Oct 2024 to Mar 2025.

fig. 17.1 · Closed offer bands, last two quarters

Staff's 158k floor sits inside senior's band, which ends at 168k. The EM band begins below staff's floor. Director begins at 196k, below principal's 208k median.

Seven trial estimates and one pooled estimate. Each row shows a hazard ratio with a 95% interval. The tick is the point estimate. The guide marks no effect.

- aspect

  1.35

- title

  Hazard ratio vs control

- items

  - - label

      A

    - from

      0.48

    - to

      0.92

    - at

      0.66

  - - label

      B

    - from

      0.55

    - to

      1.05

    - at

      0.76

  - - label

      C

    - from

      0.41

    - to

      0.84

    - at

      0.59

  - - label

      D

    - from

      0.88

    - to

      1.46

    - at

      1.13

  - - label

      E

    - from

      0.52

    - to

      0.98

    - at

      0.71

  - - label

      F

    - from

      0.61

    - to

      1.12

    - at

      0.83

  - - label

      G

    - from

      0.44

    - to

      0.89

    - at

      0.63

  - - label

      pooled

    - from

      0.58

    - to

      0.89

    - at

      0.72

- xTicks

  - - at

      0.5

    - label

      0.5

  - - at

      1

    - label

      1

  - - at

      1.5

    - label

      1.5

- guides

  - - at

      1

    - label

      null

Illustrative data. Hazard ratios with 95% intervals.

fig. 17.2 · Hazard ratio, seven trials and a pooled estimate

Seven of eight point estimates are below 1, while five intervals stay wholly below it. The pooled estimate is 0.72 with an interval from 0.58 to 0.89. Trial D is the only point estimate above 1.

- Use it for

  Intervals: salary bands, confidence ranges, forecast low to high.

- Watch out

  The bar is the interval; a tick marks a point estimate. Do not turn it into a Gantt.