Skip to main content
100%

lets make a map

✓ Published1🌍 Public
EEmmanuel Chukwujindu
Last edited Mar 27, 2021
Created on Mar 27, 2021

This example creates a map of world countries using the GeoJSON data from the world-atlas package. The visualization displays each country as a tomato-colored path with white strokes, projected using D3's geoOrthographic projection. The code imports geoPath and geoOrthographic from d3, along with the feature function from topojson, to transform raw geographic data into SVG paths. The resulting map is rendered entirely through SVG elements, demonstrating a straightforward approach to geographic data visualization with D3.js.

AI-generated description

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

MIT Licensed

Similar vizzes