singleview_5_hist-trellis.vl.json 428 Bytes
Newer Older
Danyel Fisher committed
1 2 3 4 5 6
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json", 
  "config":{"background":"#ffffff"},
  "data": { "url": "data/cars.csv" },
  "mark": "bar",
  "encoding": {
7 8 9
    "column": {"field": "body-style", "type": "nominal", "header": {"title": "Body Style"}},
    "x": {"field": "city-mpg", "type": "quantitative", "bin": true, "axis":{"title": "City MPG"}},
    "y": {"type": "quantitative", "aggregate": "count"}
Danyel Fisher committed
10 11
  }
}