Activity-8.5.1
✓ Published0🌍 Public
This example displays an interactive world map using a spherical projection, rendered as SVG paths. It loads geographic data from a TopoJSON file via `world-atlas@2`, converting it to GeoJSON features with `topojson.feature`. The visualization supports zooming through `d3.zoom`, and styles continents with `d3.geoPath` and `geoEquirectangular`. Hovering over countries changes their fill color to maroon.
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