Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Ffbudwill
Last edited May 6, 2020
Created on May 5, 2020

This example displays an interactive world map using a natural Earth projection, with countries rendered as green SVG paths that turn red on hover. The map supports zooming and panning through a D3 zoom behavior applied to the SVG group. The visualization uses d3.geoNaturalEarth1, d3.geoPath, and topojson.feature to parse geographic data from the world-atlas dataset. A semi-transparent blue sphere outlines the globe, while country names appear as tooltips via appended title elements.

AI-generated description
MIT Licensed

Similar vizzes