Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
CCodax2000
Last edited May 19, 2020
Created on May 19, 2020

This example projects a world map onto a sphere using D3.js version 5 and the TopoJSON library. It shows countries as light green filled SVG paths with black strokes at low opacity, set against a blue spherical backdrop. The code loads geographic data from the world-atlas package, then applies the `geoEquirectangular` projection and renders each country feature via `geoPath`. A `pathGenerator` also draws the sphere boundary, with styling defined in an external stylesheet.

AI-generated description
MIT Licensed

Similar vizzes