Activity 8 Map
✓ Published0🌍 Public
This example displays an interactive world map using D3 v5 and TopoJSON. It renders country boundaries from the world-atlas dataset (countries-110m.json) as SVG paths via d3.geoPath and d3.geoEquirectangular projection. Zoom and pan interactions are enabled through d3.zoom, which applies SVG transforms. The map colors landmasses light green with indigo strokes and turns them maroon on hover, demonstrating local ES6 module imports and D3’s data join pattern.
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