🌍 Public
Viewing a saved revision (read-only)
eb59dcb6e8514616987cc8d9c0d9517c
Let's make a map with D3.js!
This example shows how to create a world map using D3.js and TopoJSON, displaying countries as light green shapes on a blue sphere. The code loads world atlas data from the `world-atlas` package, converts TopoJSON features into GeoJSON using `topojson.feature`, and renders them with `d3.geoPath` and a `d3.geoNaturalEarth1` projection. Countries change color to green on hover, and the SVG includes a styled sphere background.
AI-generated description