Skip to main content
100%

Let's make an Interactive Map with D3.js!

✓ Published1🌍 Public
Fframptonb
Last edited Feb 17, 2023
Created on Feb 16, 2023

This interactive map displays world countries with hover highlighting using D3.js v5. It renders a natural Earth projection via `d3.geoPath` and `d3.geoNaturalEarth1` on an SVG, with zoom and pan control through `d3.zoom`. Country boundaries come from TopoJSON data in the world-atlas package, enriched with country names from a TSV file. The map shows tooltips with country names on hover and enables smooth exploration of geographic data.

AI-generated description

Demonstrates how to create an interactive map using D3.js. Zoom and pan functionality has been added. (based on a tutorial by Curran Kelleher)

<iframe width="560" height="315" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
MIT Licensed

Similar vizzes