🌍 Public
Viewing a saved revision (read-only)
954ed9e76ade45b8b4a8aa3afcd83a2a
Choropleth Map with Interactive Filtering
This choropleth map colors countries by economic classification using a spectral color scale. Users can click on legend items to filter the map, which dims non-matching countries and highlights the selected category. The visualization uses d3.geoPath with a geoNaturalEarth1 projection to render world map features from a 50m TopoJSON dataset, while the color legend (built with d3.scaleOrdinal and schemeSpectral) supports interactive click-based filtering. Hovering over a country displays its name and economic value via SVG title elements.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!