Skip to main content
100%

Map with D3.js

✓ Published1🌍 Public
WWayne716
Last edited Nov 20, 2020
Created on Nov 20, 2020
Forked from Face with D3.js

This map visualization displays world countries on a natural Earth projection using D3.js and TopoJSON data from the world-atlas dataset. It renders an SVG sphere background and country paths filled with teal, which turn red on hover through CSS. The code employs D3 v6 features like `geoNaturalEarth1` and `geoPath` to project geographic coordinates, while `topojson.feature` extracts country boundaries from the loaded TopoJSON file. A tooltip showing each country’s name appears via appended `title` elements.

AI-generated description
MIT Licensed

Similar vizzes