🌍 Public
Viewing a saved revision (read-only)
8f04c8672c944bd0b30a0030fa1a8f2f
Let's make a map with D3.js!
This example shows a world map rendered as an SVG using D3.js, with countries filled in turquoise and the ocean depicted as a blue sphere. It uses `d3.geoNaturalEarth1` for the projection, `d3.geoPath` to generate paths, and TopoJSON’s `feature` method to convert country boundaries from the world-atlas 110m dataset. The code appends a sphere path and then country paths, with styling from CSS for fill and stroke.
AI-generated description