🌍 Public
Fork of Choropleth Map with Interactive Filtering
PPiotr Paszek
Last edited Apr 25, 2021
Created on Apr 25, 2021
Forked from Choropleth Map with Interactive Filtering
This choropleth map displays country-level economic classifications using a natural Earth projection, with a color-coded legend that filters the map when clicked. The visualization uses D3 v5’s `geoNaturalEarth1` and `geoPath` to render geographic features from TopoJSON world-atlas data, while `scaleOrdinal` and `schemeSpectral` assign colors. Clicking a legend item dims non-matching countries and highlights the selected category; hovering reveals country names and values via SVG `<title>` elements. Pan and zoom are enabled through the `zoom` behavior.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!
MIT Licensed
Comments
Sign in to join the discussion.