Box & Whisker
Distribution comparison across groups.
Rendering…
Make it your own.
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{"group":"A","v":4.2},{"group":"A","v":4.8},{"group":"A","v":3.9},{"group":"A","v":5.1},{"group":"A","v":4.4},{"group":"A","v":4.0},{"group":"A","v":5.6},
{"group":"B","v":6.3},{"group":"B","v":5.9},{"group":"B","v":7.2},{"group":"B","v":6.8},{"group":"B","v":6.1},{"group":"B","v":6.5},{"group":"B","v":7.4},
{"group":"C","v":3.1},{"group":"C","v":3.6},{"group":"C","v":2.9},{"group":"C","v":4.1},{"group":"C","v":3.4},{"group":"C","v":3.0},{"group":"C","v":3.8}
]
},
"mark": {"type":"boxplot","extent":"min-max"},
"encoding": {
"x": {"field":"group","type":"nominal"},
"y": {"field":"v","type":"quantitative"},
"color": {"field":"group","type":"nominal","legend": null}
},
"width": 360, "height": 280
}