Let's make a map with D3.js!
✓ Published1🌍 Public
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 descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed