singleview_6_11_density-cont.vl.json 545 Bytes
Newer Older
Danyel Fisher committed
1 2 3 4 5 6 7 8
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "config": {"background":"#ffffff"},
  "data": { "url": "data/cars.csv" },
  "mark": "rect",
  "encoding": {
    "y": {"field": "curb-weight", "bin": true, "type": "quantitative", "axis": {"title": "Curb Weight"}},
    "x": {"field": "city-mpg", "bin": true, "type": "quantitative", "axis": {"title": "City MPG"}},
9
    "color": {"aggregate": "count", "type": "quantitative"}
Danyel Fisher committed
10 11 12 13 14 15 16 17 18
  },
  "config": {
    "range": {
      "heatmap": {
        "scheme": "greenblue"
      }
    }
  }
}