Plot a histogram using key and doc_count

Hi, I’m trying to plot a histogram graph using grafana with elastic search unsuccesfully:
metric: count
group by: histogram, Obj.amount, Interval: 20000, Min Doc Count: 1
this is response that i get:
response:Object
took:2
responses:Array[1]
0:Object
took:2
timed_out:false
_shards:Object
hits:Object
aggregations:Object
16:Object
buckets:Array[6]
0:Object
key:0
doc_count:13
1:Object
key:20000
doc_count:62
2:Object
key:40000
doc_count:6462
3:Object
key:60000
doc_count:230
4:Object
key:80000
doc_count:254
5:Object
key:100000
doc_count:80
status:200

if I use y = key, x = doc_count the graph will be right but they don’t show up.

how can I plot this histogram?

Hi @giovannisc, did you have luck with this? I’m trying doing the same but no luck so far, either I get that error or not able to plot anything