docs/admin_docs/configuration/country-map-tools.mdx
import countriesData from '../../data/countries.json';
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.
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:
<ul style={{columns: 3}}> {countriesData.countries.map((country, index) => ( <li key={index}>{country}</li> ))} </ul>To add a new country to the list, you'd have to edit files in @superset-ui/legacy-plugin-chart-country-map.
cd superset-frontend && npm installnpm run plugins:storybook.