{ "mark": "bar", "data": { "url": "https://vega.github.io/vega-lite/data/barley.json" }, "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "encoding": { "color": { "field": "site", "type": "nominal" }, "x": { "field": "yield", "aggregate": "sum", "type": "quantitative" }, "column": { "field": "year", "type": "ordinal" }, "y": { "field": "variety", "type": "nominal" } }, "description": "Barley crop yields in 1931 and 1932 shown as stacked bar charts" }