singleview_6_18_area-stacked.vl.json 491 Bytes
Newer Older
Danyel Fisher committed
1 2 3
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "config": {"background":"#ffffff"},     
4 5
  "width": 600,      
  "data": {"url": "data/complaints.csv",     "format": {"type": "csv"}},
Danyel Fisher committed
6 7 8 9 10 11
  "mark": "area",
  "encoding": {
    "x": {
      "timeUnit": "yearmonth", "field": "Date received", "type": "temporal",
      "axis": {"title": "Date Received"}
    },
12
    "y": { "aggregate": "count", "type": "quantitative"},
Danyel Fisher committed
13 14 15
    "color": {"field": "Product", "type": "nominal"}
  }
}