🌍 Public
Viewing a saved revision (read-only)
56266db9ccd54b62835a9428005dd971
Let's make a map with D3.js!
This example shows a world map rendered as SVG paths, with countries filled in light green and the ocean as a blue sphere. It uses the D3.js v5 library along with TopoJSON to load and parse geographic data from the world-atlas package. The code applies a natural Earth projection via `d3.geoNaturalEarth1` and a `d3.geoPath` generator to draw both the sphere outline and country borders. A static 1000x500 SVG canvas displays the result.
AI-generated description