Skip to main content
100%

Let's make a map!

✓ Published1🌍 Public
Ccathykan
Last edited May 21, 2020
Created on May 21, 2020

This example shows a world map rendered with countries filled in light green and a blue sphere representing the Earth’s surface, all within an SVG. It uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to draw geographic features, while the TopoJSON library’s `feature` method extracts country boundaries from the world-atlas dataset. The code appends a sphere path and country paths, relying on the `json` function to load the TopoJSON data asynchronously.

AI-generated description
MIT Licensed

Similar vizzes