🌍 Public
Viewing a saved revision (read-only)
5b73a658c4e0476287c26ebf97dee141
Map Interaction Assignment
This visualization displays a world map using a natural Earth projection, with countries shaded in light green and oceans in blue. Clicking a country triggers an interaction where the selected country turns red, highlighting the user’s choice. The map is rendered as SVG, with geographic data from the world-atlas TopoJSON dataset and country names loaded from a TSV file. The code utilizes d3.geoPath, d3.geoNaturalEarth1, and d3.zoom, along with topojson.feature to process the data.
AI-generated description