My document is in this format.
here type can take 4 kinds of value like 1, 2, 3, 4.
I want to plot a heat map in Kibana which shows in each location which type prevails the max. (like in some region count of 1 will be more and I want it to be red mapped).
I am not able to find any option which lets me split the aggregation on geo this way. Any solutions?