I tried to create histogram based on the variable "battery_temp_mean", but it shows an error "Cannot read property 'origins' of undefined". If I removed the format line, it shows another error "Cannot read property 'battery_temp_mean' of undefined". Could you please tell me what is the problem? Thanks in advance.
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"title": "Distribution of Mean Voltage",
"data": {
"url": {
"%context%": true,
"index": "guobiao_daily_stats*",
"body":{
_source:["battery_temp_mean"]
}
}
"format": {"property": "aggregations.origins.buckets"}
},
"mark": "bar",
"encoding": {
"x": {
"bin": true,
"field": "_source.battery_temp_mean",
"type": "quantitative"
},
"y": {
"aggregate": "count",
"type": "quantitative"
}
}
}