Following the Vega Lita weather guide in Seattle, it was easy to build the average temperature per month:
{ "$schema": "https://vega.imtqy.com/schema/vega-lite/v2.json", "data": { "url": "https://vega.imtqy.com/vega-lite/data/seattle-weather.csv" }, "mark": "line", "encoding": { "x": { "timeUnit": "month", "field": "date", "type": "temporal" }, "y": { "aggregate": "mean", "field": "temp_min", "type": "quantitative" } } }
This dataset also has a temp_max variable. How can I plot both temp_min and temp_max along the y axis?
source share