compassql
Version:
CompassQL visualization query language
44 lines • 936 B
JSON
{
"spec": {
"data": {"url": "data/cars.json"},
"mark": "?",
"encodings": [
{
"channel": "?",
"field": "Cylinders",
"type": "ordinal"
},{
"channel": "?",
"bin": "?",
"aggregate": "?",
"field": "Horsepower",
"type": "quantitative"
}
]
},
"nest": [
{
"groupBy": ["field", "aggregate", "bin", "timeUnit", "stack"],
"orderGroupBy": "aggregationQuality"
},
{
"groupBy": [{
"property": "channel",
"replace": {
"x": "xy", "y": "xy",
"color": "style", "size": "style", "shape": "style", "opacity": "style",
"row": "facet", "column": "facet"
}
}],
"orderGroupBy": "effectiveness"
},
{
"groupBy": ["channel"],
"orderGroupBy": "effectiveness"
}
],
"orderBy": "effectiveness",
"config": {
"autoAddCount": true
}
}