Let's make a map with D3.js!
✓ Published1🌍 Public
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 descriptionMIT Licensed