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