Module

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

A concise grammar of interactive graphics, built on Vega.
Latest
File
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "description": "A error bar plot showing mean, min, and max in the US population distribution of age groups in 2000.", "data": {"url": "data/population.json"}, "transform": [{"filter": "datum.year == 2000"}], "layer": [ { "mark": "rule", "encoding": { "x": {"field": "age", "type": "ordinal"}, "y": { "aggregate": "min", "field": "people", "type": "quantitative", "title": "population" }, "y2": { "aggregate": "max", "field": "people" } } }, { "mark": "tick", "encoding": { "x": {"field": "age", "type": "ordinal"}, "y": { "aggregate": "min", "field": "people", "type": "quantitative", "title": "population" }, "size": {"value": 5} } }, { "mark": "tick", "encoding": { "x": {"field": "age", "type": "ordinal"}, "y": { "aggregate": "max", "field": "people", "type": "quantitative", "title": "population" }, "size": {"value": 5} } }, { "mark": "point", "encoding": { "x": {"field": "age", "type": "ordinal"}, "y": { "aggregate": "mean", "field": "people", "type": "quantitative", "title": "population" }, "size": {"value": 2} } } ]}