Box plot
Box plot for the distribution of a value within each category.
Use a box plot when median and spread matter more than the mean, compared across categories.
Response latency by region (ms)
This chart cannot be displayed here: it needs JavaScript and WebGL.
12 observations · box = middle half, line = median
The same chart in each style
Source
```chart
type: boxplot
title: Response latency by region (ms)
data:
inline:
- { region: eu, ms: 142 }
- { region: eu, ms: 168 }
- { region: eu, ms: 185 }
- { region: eu, ms: 211 }
- { region: eu, ms: 240 }
- { region: eu, ms: 268 }
- { region: us, ms: 118 }
- { region: us, ms: 128 }
- { region: us, ms: 141 }
- { region: us, ms: 165 }
- { region: us, ms: 189 }
- { region: us, ms: 221 }
encoding: { x: region, y: ms }
```
Fields that matter
type: boxplotwith numericencoding.yand optional categoricalencoding.x- Without
encoding.x, one box covers all observations encoding.colorandencoding.facetsplit boxes and panels- Quartiles use R-7 interpolation; whiskers end at the most extreme observed values within 1.5 IQR
- Observations beyond the fences are drawn individually
style.orientationisauto(default),verticalorhorizontal
Interactions
- Hover or focus a box to read its derived summary, kept separate from individual outliers.
- Scroll a long readout with the pointer or Page Up and Page Down while the chart has focus.
- Open the Table view, Download PNG or CSV, or Expand the chart.