Module

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

A concise grammar of interactive graphics, built on Vega.
Latest
File
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": { "values": [ { "lower_yield": 23.1311, "upper_yield": 43.5522, "center": 32.4, "variety": "Glabron" }, { "lower_yield": 23.9503, "upper_yield": 38.9775, "center": 30.96667, "variety": "Manchuria" }, { "lower_yield": 24.7778, "upper_yield": 46.9167, "center": 33.966665, "variety": "No. 457" }, { "lower_yield": 21.7823, "upper_yield": 48.9732, "center": 30.45, "variety": "No. 462" } ] }, "layer": [ { "mark": "errorbar", "encoding": { "x": { "field": "upper_yield", "type": "quantitative", "scale": {"zero": false}, "title": "yield" }, "x2": {"field": "lower_yield"}, "y": {"field": "variety", "type": "ordinal"} } }, { "mark": { "type": "point", "filled": true, "color": "black" }, "encoding": { "x": { "field": "center", "type": "quantitative" }, "y": {"field": "variety", "type": "ordinal"} } } ]}