How can I use a mix of states and countries with a fill map?
I have a data table that has a column for country, state, and quantity that I'm using for a fill map. It works great for showing US and Canadian states/provinces, but going forward I'd like to add other countries that may not have states to the map.
Here's a screenshot of the setup as it is now. Notice that Mexico isn't showing up filled in on the map. How can I get Mexico to show up as filled in?
I tried a list of just the states, using Mexico as a state instead of a country, but then it turns out there's a state in Mexico called Mexico, so it only colored a tiny fraction of Mexico instead of the whole country. I thought by rearranging the data so it's organized how I showed in the screenshot would trigger Mexico to be recognized as a country, but that wasn't the case. The map prompts also suggested I use state and countries in separate columns, but didn't give any other advice after that.
Posted Apr 7, 2023, 10:43 PM UTC
Could you use the two-letter codes that Mexico uses for its states? For instance, the two-letter code for the state of Mexico in the country of Mexico is EM.
Source: https://en.m.wikipedia.org/wiki/Template:Mexico_State-Abbreviation_Codes
No. I have to use the 3 letter one (MEX) to get it show up, but that's not what I was looking for. I don't have data for the individual Mexican states, only the country as a whole.