singleview_18_line-trellis.vl.json 496 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,
  "height": 100,
Danyel Fisher committed
6 7 8 9 10 11 12
  "data": {"url": "data/complaints.csv", "format": {"type": "csv"}},
  "mark": "line",
  "encoding": {
    "x": {
      "timeUnit": "yearmonth", "field": "Date received", "type": "temporal",
      "axis": {"title": "Date Received"}
    },
13
    "y": { "aggregate": "count", "type": "quantitative"},
Danyel Fisher committed
14 15 16
    "row": {"field": "Product", "type": "nominal"}
  }
}