singleview_6_10_density-cat.vl.json 492 Bytes
Newer Older
Danyel Fisher committed
1 2 3 4 5 6 7
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "data": { "url": "data/cars.csv" },
  "mark": "rect",
  "encoding": {
    "x": {"field": "make", "type": "nominal", "axis": {"title": "Make"}},
    "y": {"field": "body-style", "type": "nominal", "axis": {"title": "Body Style"}},
8
    "color": {"aggregate": "count", "type": "quantitative"}
Danyel Fisher committed
9 10
  },
  "config": {
11
    "background":"#ffffff",    
Danyel Fisher committed
12 13 14 15 16 17 18
    "range": {
      "heatmap": {
        "scheme": "greenblue"
      }
    }
  }
}