World Map with D3 Final
✓ Published5🌍 Public
CChawin Sungwalngern
Last edited Dec 27, 2022
Created on Dec 27, 2022
This interactive world map displays country boundaries as selectable SVG paths over a blue sphere, with hover highlighting in red. The visualization uses D3’s `geoPath` and `geoNaturalEarth1` projection to render geographic features, while the `topojson` library’s `feature` function processes TopoJSON data from the world-atlas package. Country names are loaded from a TSV file and mapped to each path’s `id`. A zoom control, implemented via D3’s `zoom` event, adjusts the SVG transform. Data sources include the 50m world-atlas TSV and JSON files.
AI-generated descriptionInteractive Worldmap with geoNaturalEarth1 view.
Bostock: Dataset for title function to return country names
Reference:
MIT Licensed