Show Y axis from a field from ElasticSearch

I have a variable in JSON of elastic search and I want to build Y axis on that variable. Can you please assist how to do that !

I am able to bring default count on Y-axis as below. But I want to customize the y-axis with a field from ElasticSearch