Hi,
I'm just beginer with vega. I would like to make a histogram => [X: loglevel, Y: doc_count]
But nothing is diplayed after playing my script (below), not even a message error...
Could someone have look on it ?
Thank you
{
"$schema":"https://vega.github.io/schema/vega/v3.json",
"autosize": {
"type": "none",
"contains": "content"
}
"width": 400, "height": 100,
"data": {
url: {
index: "test_inds",
body: {
"aggs" : {
"loglvls" : {
"terms" : { "field" : "loglvl.keyword"}
}
}
}
},
"format": { "property": "aggregations.loglvls.buckets" }
},
"mark": "bar",
"encoding": {
"update": {
"x": {"field": "key", "type": "nominal"},
"y": {"field": "doc_count", "type": "quantitative"}
}
}
}