singleview_2b-bar.vl.json 385 Bytes
Newer Older
Danyel Fisher committed
1 2 3 4 5 6 7 8 9 10
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "config": {"background":"#ffffff"},     
  "data": { "url": "data/cars.csv" },
  "mark": "bar",
  "encoding": {
    "x": {"field": "body-style", "type": "nominal",  "axis": {"title": "Body Style"}},
    "y": {"aggregate": "mean", "field": "curb-weight", "type": "quantitative", "axis": {"title": "Curb Weight"}}
  }
}