🌍 Public
Viewing a saved revision (read-only)
b5cee0c61a2b4a2eacd4a317457da4dd
Let's make a map with D3.js!
This example displays a world map with countries filled in light green and oceans rendered in blue, using the Natural Earth 110m dataset loaded from the `world-atlas` package. It projects geographic coordinates with `d3.geoNaturalEarth1` and draws the sphere and country boundaries via `d3.geoPath`. The code uses the `topojson` library’s `feature` function to convert TopoJSON into GeoJSON features, then appends SVG paths to the canvas. Three.js is not used; all rendering occurs through SVG elements.
AI-generated description