Activity 8_Task5_1
✓ Published0🌍 Public
This example displays an interactive world map with countries rendered in light green against a skyblue ocean background. The visualization uses D3’s `geoEquirectangular` projection and `geoPath` to draw geographic boundaries from the world-atlas GeoJSON dataset. Hovering over individual countries changes their fill to maroon. The map supports zooming through D3’s `zoom` event and `event.transform`, updating the SVG’s transform attribute. The styling comes from an external CSS file, and the code imports `feature` from TopoJSON to convert the dataset.
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