🌍 Public
Viewing a saved revision (read-only)
caac00cb16ff4cf89c2ab8806cec4896
Let's make a map with D3.js!
This example visualizes world countries on a natural Earth projection using D3.js. It renders a blue sphere outline and green country polygons as SVG paths, loaded from a TopoJSON dataset via the `world-atlas` package. The code uses `d3.geoNaturalEarth1` for the projection and `d3.geoPath` to generate path data, with `d3.json` to fetch the data and `topojson.feature` to convert it into GeoJSON features.
AI-generated description