Let's make a map with D3.js!
✓ Published0🌍 Public
This example shows an interactive world map using a Natural Earth projection, with countries filled in light green that turn red on hover and a blue sphere backdrop. Built with D3 v5, it loads TopoJSON and TSV country metadata from the world-atlas package, then renders paths using d3.geoPath with the geoNaturalEarth1 projection. Pan and zoom controls are enabled via d3.zoom, applying transforms to the map’s group element, while tooltips display country names through SVG title elements.
AI-generated descriptionMIT Licensed