Activity 8 Map
✓ Published0🌍 Public
This example displays a zoomable world map using an equirectangular projection, with countries rendered as interactive SVG paths that change color on hover. It loads geographic data from the world-atlas TopoJSON file, converting it to GeoJSON with the `feature` method from the `topojson` library. The visualization applies a blue sphere background and green country fill, using D3 v5's `geoPath`, `geoEquirectangular`, and `zoom` APIs to enable panning and scaling of the map.
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