Fork of Choropleth Map with Interactive Filtering
This choropleth map displays worldwide economic classifications by country, with a color legend that doubles as an interactive filter. Clicking a legend item dims all countries except those matching the selected category, while hovering over the map highlights individual nations. The visualization uses d3.geoNaturalEarth1 and d3.geoPath to project geographic features from the World Atlas TopoJSON dataset, with d3.scaleOrdinal and schemeSpectral mapping economic groups to colors. The legend implements click handlers for filtering, while d3.zoom enables panning and zooming. The black background and SVG rendering complete the presentation.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter! Background to black