singleview_6_6_hist-cat.vl.json 511 Bytes
Newer Older
Danyel Fisher committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "config": {"background":"#ffffff"},   
  "data": {
       "url": "data/cars.csv", 
       "format": {"type":"csv"} 
      },
  "mark": "bar",
  "encoding": {
    "x": {
      "field": "body-style", 
      "type": "nominal", 
      "axis": {"title": "Body Style"},
      "sort": {
        "field":"*", 
        "op": "count",
        "order": "descending" 
        }      
      },
20
    "y": { "type": "quantitative", "aggregate": "count"}
Danyel Fisher committed
21 22
  }
}