I'm getting undefined for my X axis that is supposed to be nominal and I think it's because some docs don't contain that field I'm using for that axis.
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"mark": "rect",
"title": "Category",
"data": {
"url": {
"%context%": true,
"%timefield%": "@timestamp",
"index": "test*",
"body": {
"size": 10000,
"_source": [
"@timestamp",
"category"
]
}
},
"format": {"property": "hits.hits"},
"min_doc_count": 0
},
"encoding": {
"x": {
"field": "category",
"type": "nominal",
"axis": {"title": "Category"}
},
"y": {
"aggregate": "count",
"field": "category",
"type": "quantitative",
"axis": {"title": "Count"}
}
}
}