🌍 Public
Viewing a saved revision (read-only)
0306c346919141edbd9a8cf98dc19187
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