Module

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

A concise grammar of interactive graphics, built on Vega.
Latest
File
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "description": "Two vertically concatenated charts that show a histogram of precipitation in Seattle and the relationship between min and max temperature.", "data": { "url": "data/weather.csv" }, "transform": [{ "filter": "datum.location === 'Seattle'" }], "vconcat": [ { "mark": "bar", "encoding": { "x": { "timeUnit": "month", "field": "date", "type": "ordinal" }, "y": { "aggregate": "mean", "field": "precipitation", "type": "quantitative" } } }, { "mark": "point", "encoding": { "x": { "field": "temp_min", "type": "quantitative", "bin": true }, "y": { "field": "temp_max", "type": "quantitative", "bin": true }, "size": { "aggregate": "count", "type": "quantitative" } } } ]}