# Visualize ISO2 Country Codes in maps

**URL:** <https://discuss.elastic.co/t/visualize-iso2-country-codes-in-maps/242726>\
**Category:** Kibana\
**Created:** [July 27, 2020, 9:43am UTC](https://discuss.elastic.co/t/visualize-iso2-country-codes-in-maps/242726 "2020-07-27T09:43:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnalite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnalite/32/69827_2.png) [@magnalite](https://discuss.elastic.co/u/magnalite)\
**Post date:** [July 27, 2020, 9:43am UTC](https://discuss.elastic.co/t/visualize-iso2-country-codes-in-maps/242726/1 "2020-07-27T09:43:12Z")

</div>

I'm trying to visualize a count of docs by country code (ie count per country on maps) however whenever I try to do this the maps visualization plugin says I don't have an index with a geospatial data field. Is there an easy way around this or do I need to somehow convert my country code (currently stored as a string) to a geo\_point or similar?

I am using ES/Kibana 7.8.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 27, 2020, 1:59pm UTC](https://discuss.elastic.co/t/visualize-iso2-country-codes-in-maps/242726/2 "2020-07-27T13:59:58Z")

</div>

You can follow this guide to create a choropleth map [https://www.elastic.co/guide/en/kibana/current/maps-add-choropleth-layer.html](https://www.elastic.co/guide/en/kibana/current/maps-add-choropleth-layer.html).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 24, 2020, 2:05pm UTC](https://discuss.elastic.co/t/visualize-iso2-country-codes-in-maps/242726/3 "2020-08-24T14:05:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
