World Map with TopoJSON
✓ Published0🌍 Public
This example displays a world map rendered as green SVG paths on a light blue background, with countries brightening on mouseover. It loads country boundaries from the world-atlas TopoJSON dataset and converts them to GeoJSON features using topojson.feature. The d3.geoMercator projection and d3.geoPath API generate the map geometry, while event handlers dynamically change path fill colors to highlight individual countries.
AI-generated descriptionMIT Licensed