Module

x/vega_lite/examples/specs/layer_boxplot_circle.vl.json

A concise grammar of interactive graphics, built on Vega.
Latest
File
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "width": 500, "description": "A horizontal box plot showing median, min, and max in the US population distribution of age groups in 2000 and all raw data on the top.", "data": {"url": "data/population.json"}, "layer": [{ "mark": {"type": "boxplot", "outliers": false}, "encoding": { "y": {"field": "age", "type": "ordinal"}, "x": { "field": "people", "type": "quantitative", "title": "population" } } },{ "mark": "circle", "encoding": { "y": {"field": "age", "type": "ordinal"}, "x": { "field": "people", "type": "quantitative", "title": "population" }, "color": {"value": "black"}, "opacity": {"value": 0.2} } }]}