Lets Make a map with D3.js
✓ Published0🌍 Public
This example visualizes world countries as a static map using a natural Earth projection. The map renders countries in light green with subtle black strokes against a dark blue sphere, providing a clear geographic overview. The code uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to draw SVG paths, while TopoJSON’s `feature` extracts country boundaries from a world-atlas dataset. Country shapes are appended to an SVG container, with styling applied via CSS classes for sphere and country paths.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed