{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": { "url": "https://vega.github.io/vega-lite/data/lookup_groups.csv" }, "description": "Using the lookup transform to combine data", "encoding": { "x": { "field": "group", "type": "ordinal" }, "y": { "aggregate": "mean", "field": "age", "type": "quantitative" } }, "mark": "bar", "transform": [ { "from": { "data": { "url": "https://vega.github.io/vega-lite/data/lookup_people.csv" }, "fields": [ "age", "height" ], "key": "name" }, "lookup": "person" } ] }