Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
DDonggov
Last edited May 30, 2022
Created on May 30, 2022

This example displays an interactive world map using a natural Earth projection, with country boundaries rendered as SVG paths on a spherical globe backdrop. The map supports panning and zooming through the D3 zoom behavior. It loads TopoJSON data from the world-atlas package, converts it to GeoJSON using the topojson feature method, and draws each country with geoPath while adding title tooltips showing country names. The code uses D3 v5 modules including geoNaturalEarth1, geoPath, and zoom.

AI-generated description
MIT Licensed

Similar vizzes