Skip to content
Vega-Lite templates

Math — Chart: Box Plot

A box-and-whisker plot of a small data set.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Box plot of measurements",
  "data": {"values": [
    {"v": 12}, {"v": 15}, {"v": 18}, {"v": 19}, {"v": 21},
    {"v": 22}, {"v": 24}, {"v": 25}, {"v": 27}, {"v": 31},
    {"v": 34}, {"v": 41}
  ]},
  "mark": {"type": "boxplot", "extent": "min-max"},
  "encoding": {
    "y": {"field": "v", "type": "quantitative", "title": "measurement"}
  }
}