plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.9k stars 1.85k forks source link

Kosovo and other non-recognized states not selectable in Choropleth maps #1259

Closed jackluo closed 4 years ago

jackluo commented 7 years ago

Kosovo isn't selectable whether by name or by ISO code (UNK)

screenshot 2016-12-15 18 21 14

After further digging I realized West Bank and Western Sahara have the same problem for Choropleth maps; perhaps we should stick to officially recognized states only, but in this case leaving 3 territories blank seems weird.

jackluo commented 7 years ago

@etpinard

etpinard commented 7 years ago

Looks like bumping https://github.com/etpinard/country-regex to the latest https://github.com/vincentarelbundock/countrycode/blob/master/data/countrycode_data.csv

should do the trick.

etpinard commented 7 years ago

unless https://github.com/etpinard/sane-topojson doesn't recognise the Kosovo ISO-3 code.

etpinard commented 5 years ago

related: https://github.com/nvkelso/natural-earth-vector/issues/195

IrvingGomez commented 4 years ago

Somaliland and North Cyprus have the same problem

nicolaskruchten commented 4 years ago

Our policy with the built-in geojson files is to occasionally update based on whatever is in the Natural Earth dataset. That said, we now support user-specified geojson input in choropleth traces, so we encourage users to use whichever polygons suit their needs.

bmikolaj commented 4 years ago

Has someone gone ahead and made custom geojson choropleth traces made for these regions?

nicolaskruchten commented 4 years ago

There are no custom traces, no, but if you have a preferred GeoJSON representation of the world's countries, you can use that with the standard choropleth trace.