Activity 8 Question 5
✓ Published1🌍 Public
This example displays an interactive world map rendered as SVG using D3 v5 and TopoJSON. It loads country boundaries from the world-atlas dataset and projects them with a D3 geoEquirectangular projection and geoPath generator. The map supports pan and zoom through a D3 zoom behavior applied to the SVG element. Countries appear in light green with an indigo stroke, and hover states change their fill to maroon via CSS.
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