Vega graph not display

Hello I have below query in vega but i am not able to see result in graph. thoughapi getting result

{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"mark": "point",
"data": {
"url": {
"%context%": true,
"%timefield%": "data.timestamp",
"index": "test-*",
"body": {
"size": 10000,
"_source": ["data.current", "data.voltage", "data.timestamp"]
}
},
"format": {"property": "hits.hits"}
},
"transform": [
{"calculate": "toDate(datum._source['data.timestamp'])", "as": "time"}
],
"encoding": {
"x": {"field": "time", "type": "temporal", "axis": {"title": false}},
"y": {"field": "data.voltage", "type": "quantitative"}

}
}

cc @nyuriks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.