Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
WWai Kit Tsang
Last edited Jul 7, 2020
Created on Jul 7, 2020

This example shows an interactive world map built with D3.js v5, rendered as SVG. It displays country boundaries and names from the world-atlas TopoJSON dataset using a Natural Earth projection, with the ocean filled blue and countries in green. The map supports pan and zoom through d3.zoom, which applies transform updates to the entire map group. Hovering highlights individual countries in red via CSS. The code uses d3.geoPath and d3.geoNaturalEarth1 for geographic projections and feature conversion from TopoJSON.

AI-generated description
MIT Licensed

Similar vizzes