Module

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

A concise grammar of interactive graphics, built on Vega.
Latest
File
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": {"url": "data/cars.json"}, "encoding": { "x": { "field": "Year", "timeUnit": "year" } }, "layer": [ { "mark": {"type": "errorband", "extent": "ci"}, "encoding": { "y": { "field": "Miles_per_Gallon", "type": "quantitative", "title": "Mean of Miles per Gallon (95% CIs)" } } }, { "mark": "line", "encoding": { "y": { "aggregate": "mean", "field": "Miles_per_Gallon" } } } ]}