🌍 Public
Viewing a saved revision (read-only)
aa1b825ba0f449b09a5a32fe357ec9dc
Let's make a map with D3.js!
This example projects a world map onto a sphere using D3.js version 5 and the TopoJSON library. It shows countries as light green filled SVG paths with black strokes at low opacity, set against a blue spherical backdrop. The code loads geographic data from the world-atlas package, then applies the `geoEquirectangular` projection and renders each country feature via `geoPath`. A `pathGenerator` also draws the sphere boundary, with styling defined in an external stylesheet.
AI-generated description