{ "transform": [ { "window": [ { "op": "mean", "as": "rollingMean", "field": "temp_max" } ], "frame": [ -15, 15 ] } ], "height": 300, "data": { "url": "https://vega.github.io/vega-lite/data/seattle-weather.csv" }, "width": 400, "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "layer": [ { "mark": { "opacity": 0.3, "type": "point" }, "encoding": { "x": { "field": "date", "title": "Date", "type": "temporal" }, "y": { "field": "temp_max", "title": "Maximum temperature", "type": "quantitative" } } }, { "mark": { "color": "red", "size": 3, "type": "line" }, "encoding": { "x": { "field": "date", "type": "temporal" }, "y": { "field": "rollingMean", "type": "quantitative" } } } ], "description": "Plot showing a 30 day rolling average with raw values in the background." }