Skip to main content
100%

Map with D3 firts part

✓ Published2🌍 Public
CChawin Sungwalngern
Last edited Dec 26, 2022
Created on Dec 26, 2022

A world map rendered with D3.js and the TopoJSON library displays countries as pale beige shapes with blue-gray borders against a teal background. The visualization loads geographic data from the world-atlas package and uses `geoMercator` for projection, while `geoPath` generates the SVG paths for each country. The map is built by selecting the SVG element, fetching the TopoJSON data, and appending a `<path>` element for every country feature.

AI-generated description

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

MIT Licensed

Similar vizzes