Let's make a MAP with D3.js!
✓ Published0🌍 Public
This example visualizes world countries as a natural Earth projection map, with light green landmasses on a sky blue sphere. It loads geographic data from the world-atlas TopoJSON dataset and converts it into GeoJSON features using the `feature` function. The map is rendered with D3’s `geoNaturalEarth1` projection, `geoPath` for path generation, and SVG paths for each country, including a sphere outline. Styling applies via CSS classes for the sphere and country fills, with semi-transparent black country borders.
AI-generated descriptionReact Starter code.
MIT Licensed