World Map
✓ Published0🌍 Public
This world map uses D3 v5 to render country boundaries as SVG paths. The code imports `geoEquirectangular`, `geoPath`, and `zoom` from D3, plus the `feature` function from TopoJSON, and loads country data from the world-atlas package. Countries are filled in pink with black borders and turn green on hover, while the underlying sphere is teal. The map also supports zooming through D3's zoom behavior.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed