List of Locationmode to Use with Plotly
I Need to Make a Graphical Representation of Data Distributed in Brazil, Which Is My Country. I Found That Plotly Can Do This Job, but When I Went to Research...
I need to make a graphical representation of data distributed in Brazil, which is my country.
I found that plotly can do this job, but when I went to research how to use plotly, every tutorial was using the locationmode attribute as 'USA-states'.
Is there a list with countries codes, so I can go after to see which is the right way of calling it?
1 Answer
From docs:
locationmode ( enumerated : "ISO-3" | "USA-states" | "country names" )
default: "ISO-3"
Determines the set of locations used to match entries in `locations` to regions on the map.
So for Brazil you have to add these lines:
locations = ["Brazil"],
locationmode = 'country names'