Activity 8 Map
✓ Published0🌍 Public
This example displays a world map using an equirectangular projection, with countries filled in light green and bordered by indigo. It demonstrates how to load geographic data from the World Atlas TopoJSON file and render it as SVG paths using `d3.geoPath` and `d3.geoEquirectangular`. The map supports pan and zoom interactions via `d3.zoom`, and countries change color to maroon on hover through CSS. The code imports D3 modules and the `feature` method from TopoJSON.
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