🌍 Public
Viewing a saved revision (read-only)
1d16b80618e246b2aefc92308b12cb45
Let's make a map with D3.js!
This example demonstrates how to create a world map using D3.js, rendering countries as SVG paths filled with light green and a blue sphere as the globe backdrop. It employs the `d3.geoNaturalEarth1` projection and `d3.geoPath` to generate geographic shapes, while loading TopoJSON data from the world-atlas package and converting it to GeoJSON via `topojson.feature`. The map is drawn on a static 960×500 SVG canvas without interactivity.
AI-generated description