🌍 Public
Viewing a saved revision (read-only)
abdf352ed43a4d0394665b4275614eb8
Let's make a map with D3.js!
This example demonstrates how to create a world map using D3.js v5, displaying country boundaries as light green polygons on a blue sphere. It loads geographic data from the world-atlas TopoJSON dataset and renders it as SVG using `d3.geoPath` with the `geoNaturalEarth1` projection. The code processes the TopoJSON through the `topojson.feature` API and applies a `geoPath` generator to draw each country outline with stroke opacity styling.
AI-generated description