Newer
Older
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"config":{"background":"#ffffff"},
"data": { "url": "data/cars.csv" },
"mark": "bar",
"encoding": {
"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"}