ICE-8 World Map Using d3
✓ Published1🌍 Public
This example displays a world map using a natural Earth projection, rendering countries as SVG paths with a light green fill and black strokes. Countries highlight in yellow on hover. The visualization loads GeoJSON data from the world-atlas package, converts TopoJSON to GeoJSON using `topojson.feature`, and projects it with `d3.geoNaturalEarth1` and `d3.geoPath`. The code imports these modules from `d3` and uses `d3.select` to append paths to the SVG.
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