Skip to main content
100%

Map with Selectable Countries

✓ Published0🌍 Public
CCurran Kelleher
Last edited Apr 20, 2019
Created on Apr 20, 2019

An interactive choropleth map displays global economies colored by income group, with clickable countries that highlight and dim others. Clicking a selected country again deselects it, while pan and zoom are supported. Built with D3 v5, it uses `geoNaturalEarth1` and `geoPath` for map projection, `scaleOrdinal` with `schemeSpectral` for coloring, and `d3.zoom` for interaction. Data comes from the World Atlas TopoJSON and TSV files. The code demonstrates migration from VizHub to local development with Rollup bundling.

AI-generated description

A choropleth map with selectable countries.

This example demonstrates the changes neede for migration from VizHub to local development. Namely:

  • Required packages are added to package.json.
  • Script tags for libraries are removed from index.html.
  • Externals and globals can be removed from rollup.config.js.

Similar vizzes