🌍 Public
Viewing a saved revision (read-only)
27d69b5132bb4fc4b3e143736d201302
Interactive Filtering on a Choropleth Map
A choropleth map of global economies uses color to represent each country’s economic group, with a clickable color legend enabling interactive filtering by dimming non-selected categories. Users can zoom and pan the geoNaturalEarth1 projection via d3.zoom, while d3.geoPath renders country boundaries from TopoJSON data enriched with World Atlas TSV attributes. The legend updates opacity through D3’s data-join and event handling, using schemeSpectral for the color scale.
AI-generated description