Black Lives Matter. Please consider donating to Black Girls Code today.

Custom Choropleth Map

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.

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'.

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

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?