Skip to main content
Edit this page on GitHub

The Country Map Visualization

The Country Map visualization allows you to plot lightweight choropleth maps of your countries by province, states, or other subdivision types. It does not rely on any third-party map services but would require you to provide the ISO-3166-2 codes of your country's top-level subdivisions. Comparing to a province or state's full names, the ISO code is less ambiguous and is unique to all regions in the world.

Included Maps

The current list of countries can be found in the src legacy-plugin-chart-country-map/src/countries.ts

The Country Maps visualization already ships with the maps for the following countries:

  • Afghanistan
  • Aland
  • Albania
  • Algeria
  • American Samoa
  • Andorra
  • Angola
  • Anguilla
  • Antarctica
  • Antigua And Barbuda
  • Argentina
  • Armenia
  • Australia
  • Austria
  • Azerbaijan
  • Bahrain
  • Bangladesh
  • Barbados
  • Belarus
  • Belgium
  • Belize
  • Benin
  • Bermuda
  • Bhutan
  • Bolivia
  • Bosnia And Herzegovina
  • Botswana
  • Brazil
  • Brunei
  • Bulgaria
  • Burkina Faso
  • Burundi
  • Cambodia
  • Cameroon
  • Canada
  • Cape Verde
  • Central African Republic
  • Chad
  • Chile
  • China
  • Colombia
  • Comoros
  • Cook Islands
  • Costa Rica
  • Croatia
  • Cuba
  • Cyprus
  • Czech Republic
  • Democratic Republic Of The Congo
  • Denmark
  • Djibouti
  • Dominica
  • Dominican Republic
  • Ecuador
  • Egypt
  • El Salvador
  • Equatorial Guinea
  • Eritrea
  • Estonia
  • Ethiopia
  • Fiji
  • Finland
  • France
  • France (with overseas)
  • France (regions)
  • French Polynesia
  • Gabon
  • Gambia
  • Germany
  • Ghana
  • Greece
  • Greenland
  • Grenada
  • Guatemala
  • Guinea
  • Guyana
  • Haiti
  • Honduras
  • Hungary
  • Iceland
  • India
  • Indonesia
  • Iran
  • Israel
  • Italy
  • Italy (regions)
  • Japan
  • Jordan
  • Kazakhstan
  • Kenya
  • Korea
  • Kuwait
  • Kyrgyzstan
  • Laos
  • Latvia
  • Lebanon
  • Lesotho
  • Liberia
  • Libya
  • Liechtenstein
  • Lithuania
  • Luxembourg
  • Macedonia
  • Madagascar
  • Malawi
  • Malaysia
  • Maldives
  • Mali
  • Malta
  • Marshall Islands
  • Mauritania
  • Mauritius
  • Mexico
  • Moldova
  • Mongolia
  • Montenegro
  • Montserrat
  • Morocco
  • Mozambique
  • Myanmar
  • Namibia
  • Nauru
  • Nepal
  • Netherlands
  • New Caledonia
  • New Zealand
  • Nicaragua
  • Niger
  • Nigeria
  • Northern Mariana Islands
  • Norway
  • Oman
  • Pakistan
  • Palau
  • Panama
  • Papua New Guinea
  • Paraguay
  • Peru
  • Philippines
  • Philippines (regions)
  • Poland
  • Portugal
  • Qatar
  • Romania
  • Russia
  • Rwanda
  • Saint Lucia
  • Saint Pierre And Miquelon
  • Saint Vincent And The Grenadines
  • Samoa
  • San Marino
  • Sao Tome And Principe
  • Saudi Arabia
  • Senegal
  • Seychelles
  • Sierra Leone
  • Singapore
  • Slovakia
  • Slovenia
  • Solomon Islands
  • Somalia
  • South Africa
  • Spain
  • Sri Lanka
  • Sudan
  • Suriname
  • Sweden
  • Switzerland
  • Syria
  • Taiwan
  • Tajikistan
  • Tanzania
  • Thailand
  • The Bahamas
  • Timorleste
  • Togo
  • Tonga
  • Trinidad And Tobago
  • Tunisia
  • Turkey
  • Turkey (regions)
  • Turkmenistan
  • Turks And Caicos Islands
  • Uganda
  • UK
  • Ukraine
  • United Arab Emirates
  • United States Minor Outlying Islands
  • United States Virgin Islands
  • Uruguay
  • USA
  • Uzbekistan
  • Vanuatu
  • Venezuela
  • Vietnam
  • Wallis And Futuna
  • Yemen
  • Zambia
  • Zimbabwe

Adding a New Country

To add a new country to the list, you'd have to edit files in @superset-ui/legacy-plugin-chart-country-map.

  1. Generate a new GeoJSON file for your country following the guide in this Jupyter notebook.
  2. Edit the countries list in legacy-plugin-chart-country-map/src/countries.ts.
  3. Install superset-frontend dependencies: cd superset-frontend && npm install
  4. Verify your countries in Superset plugins storybook: npm run plugins:storybook.
  5. Build and install Superset from source code.