Skip to main content
100%

Activity 8 Question 5

✓ Published1🌍 Public
MMichael Biancardi
Last edited Jul 21, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes