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

Is there any way to draw maps for the other country

Hello,I am a college student from China.
Today I was trying to use plotly to draw a map of my contury. But failed.Because the administrative districts of china weren’t included.
I was wondering how I can draw a map not only for the US.
thanks for any help!:grin:

@lishi,
Yes, you can plot China map using this topojson file:
https://github.com/deldersveld/topojson/blob/master/countries/china/china-provinces.json
and following the steps illustrated in this Jupyter Notebook https://plot.ly/~empet/14397.

1 Like

Worked. Thanks a lot :grin:

Hi @lishi,
An alternative you could also consider is shown in a dash example, where the underlying map contains also other countries than the USA:
https://dash-gallery.plotly.host/dash-oil-gas-ternary/.
This envolves less coding that the previous answer.
I know this is an old question but I post it in order to possibly help new readers :slight_smile: