🌍 Public
Viewing a saved revision (read-only)
ca84149c88be4e7885b1ac3403112289
Let's make a map with d3.js
This example renders a world map in a natural Earth projection using the d3.js library. It displays continents in green against a blue spherical backdrop, with country boundaries outlined in black. The visualization fetches GeoJSON data from the world-atlas package, converts it using the topojson `feature` function, and projects it onto an SVG canvas with `d3.geoPath` and `d3.geoNaturalEarth1`. The map is styled via CSS classes for the sphere and individual countries.
AI-generated description