Assignment2_Task6
✓ Published0🌍 Public
This visualization displays an interactive world map using a spherical representation with geographic country boundaries. The map is rendered as SVG with an equirectangular projection, allowing users to zoom the entire globe. Countries are colored pale green with black borders and turn white when hovered. The code uses `d3.geoPath` and `d3.geoEquirectangular` for map rendering, `d3.zoom` for pan-and-zoom interactions, and the `topojson` `feature` method to convert TopoJSON data from the world-atlas dataset into GeoJSON for drawing country paths.
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