Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
MMatan
Last edited Nov 10, 2020
Created on Nov 10, 2020

This example demonstrates a basic world map visualization using D3.js. It renders the Earth’s landmasses as green shapes on a blue sea, with country borders outlined in black, using a natural Earth projection. The code loads GeoJSON data from the `world-atlas` package and projects it with `d3.geoPath` and `d3.geoNaturalEarth1`. It also uses TopoJSON’s `feature` function to extract country boundaries, with all graphics drawn as SVG paths.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes