World Map
✓ Published0🌍 Public
This example displays an interactive world map using the geoNaturalEarth1 projection, rendering countries as SVG paths with hover highlighting. It loads world-atlas TopoJSON data, converts it to GeoJSON with the `feature` method, and draws it using `d3.geoPath`. The map supports pan and zoom through `d3.zoom`, and includes a styled sphere background. The implementation imports `select`, `json`, `geoPath`, and `zoom` from D3 v5, along with the TopoJSON module.
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