World Map
✓ Published0🌍 Public
This example renders a world map using D3.js version 5 and TopoJSON. It displays country boundaries as green-filled paths with a semi-transparent stroke, overlaid on a white sphere representing the globe. The code uses `d3.geoNaturalEarth1` for projection, `d3.geoPath` to generate SVG paths, and `topojson.feature` to convert world-atlas data from TopoJSON to GeoJSON. Data is loaded asynchronously from the unpkg-hosted world-atlas dataset.
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