Skip to content

boxplot ​

Use to compare distributions across categories from raw observations: latency per service, scores per class. One row = one observation: x category, y number. Repeated categories are the point. Optional series puts one box per series inside each category. Keep category order as first seen. Quartiles use linear interpolation (type 7, as numpy, R, and Excel QUARTILE.INC). Whiskers reach the furthest observations inside 1.5 × IQR; the rest are hollow outlier dots. A group with fewer than five values shows its points and a median tick, not a box. An empty y is skipped. Negatives are fine.

Do not use for one number per category (bar) or for a single distribution's shape in detail (hist).

x category · y number (one observation per row) · series optional (one box per series)

Rules. Repeated categories are expected; keep first-seen order. Type-7 quartiles; whiskers at the furthest points inside 1.5 × IQR; points beyond are outliers. A group under five values shows its points and a median tick, not a box. An empty y is skipped.

Example ​

chart
markvis: 2
type: boxplot
title: Search answers fastest but has the longest tail
unit: ms
x: service
y: latency

service,latency
Search,42
Search,38
Search,45
Search,40
Search,39
Search,44
Search,120
Checkout,88
Checkout,92
Checkout,85
Checkout,95
Checkout,90
Checkout,99
Search answers fastest but has the longest tail boxplot chart. Search answers fastest but has the longest tail. x=service. y=latency. unit=ms. 13 rows. Search answers fastest but has the longest tailSearch answers fastest but has the longest tail · ms SearchSearch CheckoutCheckout 0 50 100 150 42 · n=7 91 · n=6
Search answers fastest but has the longest tail
servicelatency
Search42
Search38
Search45
Search40
Search39
Search44
Search120
Checkout88
Checkout92
Checkout85
Checkout95
Checkout90
Checkout99

When the block is wrong ​

The rows stay, with one line that names the error.

chart
markvis: 2
type: boxplot
title: Text in a measure
x: service
y: latency

service,latency
Search,fast
servicelatency
Searchfast

E_BAD_NUMBER: row 1, column latency: "fast" is not a number

Generated from packages/types/boxplot/ and the type's row in SPEC.md.

0.0.13 lives under legacy/