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