{ "mark": "bar", "data": { "url": "https://vega.github.io/vega-lite/data/seattle-weather.csv" }, "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "encoding": { "color": { "field": "weather", "scale": { "domain": [ "sun", "fog", "drizzle", "rain", "snow" ], "range": [ "#e7ba52", "#c7c7c7", "#aec7ea", "#1f77b4", "#9467bd" ] }, "type": "nominal", "legend": { "title": "Weather type" } }, "x": { "field": "date", "timeUnit": "month", "type": "ordinal", "axis": { "title": "Month of the year" } }, "y": { "aggregate": "count", "type": "quantitative" } }, "description": "Seattle weather stacked bar chart" }