Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Rrcumani
Last edited Jul 9, 2019
Created on Jul 9, 2019

This example displays a world map using D3.js, rendering countries as interactive SVG paths with hover effects that turn them red. The visualization uses `d3.geoNaturalEarth1` for projection and `d3.geoPath` to draw the globe and country boundaries from TopoJSON data loaded from the World Atlas. A `d3.zoom` behavior enables pan and zoom, while country names are joined from TSV data using `Promise.all`. The map is styled with CSS classes, featuring a blue sphere and light green countries.

AI-generated description
MIT Licensed

Similar vizzes