world map with d3
✓ Published1🌍 Public
A world map rendered in SVG shows country boundaries and a stylized ocean using a natural Earth projection. The visualization loads GeoJSON country data from the world-atlas dataset and projects it with `d3.geoNaturalEarth1` and `d3.geoPath`. A sphere outline is drawn as a separate path, while countries are filled with light green and outlined in black. The code imports `d3.json`, `select`, and `geoPath` from D3 v6, and uses `topojson.feature` to convert TopoJSON regions into drawable features.
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