🌍 Public
Viewing a saved revision (read-only)
9c30c1dff035439695193c85e3c7b539
Fork of DV Fork for geo for world
This example displays a world map in a natural Earth projection, with countries rendered as yellow shapes with black outlines against a blue ocean sphere. It uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to generate SVG paths from TopoJSON data. The code loads the TopoJSON file from a remote GitHub gist via `json`, converts it using `feature`, and appends country paths dynamically. The sphere background is drawn first, and all shapes use the SVG `path` element.
AI-generated description