Fork of Choropleth Map with Interactive Filtering
A choropleth map shows global economies color-coded by category, with a legend that users can click to filter which countries remain highlighted. Hovering over legend items dims non-matching regions, while clicking toggles a specific category or clears the filter. Using d3.geoPath and d3.geoNaturalEarth1 for projection, the map loads world-50m TopoJSON data from World Atlas. The legend and map updates rely on d3.scaleOrdinal, d3.schemeSpectral, and d3.zoom for panning and zooming.