# Custom Choropleth Map

**URL:** <https://community.plotly.com/t/custom-choropleth-map/8361>\
**Category:** plotly.js\
**Created:** [February 15, 2018, 9:48am UTC](https://community.plotly.com/t/custom-choropleth-map/8361 "2018-02-15T09:48:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![letroot](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@letroot](https://community.plotly.com/u/letroot)\
**Post date:** [February 15, 2018, 9:48am UTC](https://community.plotly.com/t/custom-choropleth-map/8361/1 "2018-02-15T09:48:07Z")

</div>

Hi! The choropleth map component has a states’ view of only the USA country map. I want a choropleth map that shows states for another country, say Nigeria. How do I go about doing this, please?

Thanks.

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [February 15, 2018, 2:36pm UTC](https://community.plotly.com/t/custom-choropleth-map/8361/2 "2018-02-15T14:36:39Z")

</div>

There’s no easy way to do this at the moment unfortunately.

If you have access to the Nigeria states’ geojson, you can try converting their coordinates to `scattergeo` traces with `mode: 'lines'`.

---

<div class="post-metadata">

**Author:** ![letroot](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@letroot](https://community.plotly.com/u/letroot)\
**Post date:** [February 15, 2018, 4:01pm UTC](https://community.plotly.com/t/custom-choropleth-map/8361/3 "2018-02-15T16:01:49Z")

</div>

Thanks! I have access to the svg and the geojson of Nigeria states. How do I convert their coordinates to `scattergeo` traces?

---

<div class="post-metadata">

**Author:** ![nwaughachukwuma](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nwaughachukwuma](https://community.plotly.com/u/nwaughachukwuma)\
**Post date:** [April 18, 2018, 5:50pm UTC](https://community.plotly.com/t/custom-choropleth-map/8361/4 "2018-04-18T17:50:36Z")

</div>

Hi @etienne any solution to this yet? I see that I can use scopes for continents and regions e.g. africa or north america, respectively. Is it possible to use scopes for countries other than the usa?
