Fork of Let's make a map with D3.js!
✓ Published0🌍 Public
This example displays a world map as an SVG, with countries shown in light green on a blue sphere background. It uses D3.js v5 for map projections and rendering, specifically the `geoNaturalEarth1` projection and `geoPath` to convert geographic coordinates into SVG paths. The map data comes from the world-atlas package, loaded as TopoJSON and processed with the `topojson` library’s `feature` function. The page is built with a React starter template, though the main logic runs through a bundle.js file that fetches country boundaries and draws them, including a background sphere path drawn first.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed