singleview_6_15_heatmap.vl.json 534 Bytes
Newer Older
Danyel Fisher committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "config": {"background":"#ffffff",
    "range": {
      "heatmap": {
        "scheme": "yellowgreenblue"
      }
    }
  },     
  "width": 600,
  "data": {"url": "data/complaints.csv", "format": {"type": "csv"}},
  "mark": "rect",
  "encoding": {
    "y": {"field": "Product", "type": "nominal"},
    "x": {
      "field": "Date received", 
      "type": "temporal", 
      "timeUnit":"yearmonth"},
19
    "color": {"aggregate": "count", "type": "quantitative"}
Danyel Fisher committed
20 21
  }
}