As you can see, Kibana does select the top 5 cities for each of the top 5 countries as intended. Yet, the X-Axis shows empty blank space for each Country (which corresponds to the top 5 cities from the other countries).
How can I eliminate that empty blank space and show only the top 5 cities for each of the countries?
Even better, can Kibana automatically relate the country to the city? That is, can I display all cities for each country (not only the top 5 cities)?
That's how the normal chart mode operates unfortunately, it preserves order and spacing. If you go to metric and axes and click on stacked, it'll collapse each series into a single bar. Does that work for you?
It should be possible to get all regions. You'll want to start with a terms aggregation on region with a maximal size, and then split series on country name. This'll likely have the same issue with spacing unless stacked mode is used.
I had already tried the stacked mode and it does offer a better representation of what I wanted even though it doesn't allow an immediate comparison between each region (I would have to either mouseover to see the count of each region or measure the length of the bar of each region). Ideally, I want all bars to start at the x-axis so that the longer the bar, the larger the count value.
Regarding your suggestion for getting all the regions, using this method, I can show all the regions but they are not grouped by Country. Instead, the Country is indicated by the color of the bar.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.