Skip to main content
100%

Lets make a map with D3.js

✓ Published1🌍 Public
HHelenaShu
Last edited Sep 6, 2019
Created on Sep 4, 2019

This example demonstrates an interactive world map where each country is a clickable path element, with country names available as tooltips on hover. The visualization uses D3.js v5 with the `d3.geoPath` and `d3.geoNaturalEarth1` projection to render geographic boundaries from the world-atlas TopoJSON and TSV datasets, which supply the country shapes and names. The map supports zooming and panning via the `d3.zoom` module, which updates the SVG group's transform attribute. Country hover states change fill color to red, highlighting the selected nation.

AI-generated description
MIT Licensed

Similar vizzes