Fork of Making a map
✓ Published0🌍 Public
This example renders a world map using a Natural Earth projection sourced from the world-atlas package. The visualization displays countries as white SVG paths on a dark teal sphere, with a hover effect that highlights each country in amber. Built with d3 v5, it employs `d3.geoNaturalEarth1` and `d3.geoPath` to generate the country shapes, and `topojson.feature` to convert the TopoJSON data into geographic features. The interactive zoom functionality is implemented via `d3.zoom`, which updates the group transform on each zoom event.
AI-generated descriptionA simple map from d3 using topojson.
MIT Licensed