multiview_9_dashboard.vl.json 714 Bytes
Newer Older
Danyel Fisher's avatar
Danyel Fisher committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "config": {"background":"#ffffff"},
  "data": {"url": "data/cars.csv"},
  "vconcat": [{
    "repeat": {"column": ["horsepower","city-mpg","highway-mpg"]},
    "spec": {
      "mark": "bar",
      "encoding": {
        "x": {
          "bin": true,
          "field": {"repeat": "column"},
          "type": "quantitative"
        },
        "y": {"aggregate": "count","type": "quantitative"}
      }
    }
  }, {
    "mark": "point",
    "encoding": {
        "x": {"field": "horsepower","type": "quantitative"},
        "y": {"field": "city-mpg","type": "quantitative"},
        "color": {"field": "drive-wheels","type": "nominal"}
    }
  }]
}