I am just trying to do a simple count of all container_id 's for every state in vega-lite and it thorws an error as invalid spec. What am I doing wrong here?
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"title": "Event counts from all indexes",
"data": {
"url": {
"index": "my_index",
"body": {
"mark": "bar",
"encoding": {
"x": {"field": "currDetails_state"},
"y": {"aggregate": "distinct", "field": "currDetails_container_id.keyword", "type": "quantitative"}
}
}
}
}
}