Skip to main content
100%

Activity 8 Map

✓ Published0🌍 Public
UUmarani Vemula
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example displays an interactive world map using D3 v5 and TopoJSON, rendering countries as SVG paths with a light green fill and indigo stroke. The map uses an equirectangular projection via `d3.geoEquirectangular` and `d3.geoPath`, pulling geographic data from the world-atlas countries-110m.json dataset. Users can zoom and pan the map through a `d3.zoom` handler that applies transforms to the SVG. Hovering over a country changes its fill to maroon, providing simple visual feedback.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes