Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Spinning Globe with capitals

Public visualization

Viewing a saved revision (read-only)

0dfe47b44e8b47b4a1f403c38a577d14

Spinning Globe with capitals

1 star1🌍 Public
Ffadingcode9@gmail.com
Last edited Apr 13, 2024
Created on Apr 12, 2024
Forked from Spinning Globe

A spinning globe displays capital cities as proportional points, with land, water, graticules, the equator, and the prime meridian rendered in gradient colors that shift with the rotating orthographic projection. Using d3-geo’s `geoPath` and `geoOrthographic`, the animation advances longitude each frame via `requestAnimationFrame`, while city radius scales with square-rooted population data from a reduced world cities CSV. Overlaid graticule lines and country borders are clipped to the globe’s visible hemisphere, producing a stylized, night-side gradient effect.

AI-generated description

A spinning globe with capital cities.

Initially, I just wanted to change the rotation, add a graticule and the equator. Then I realized that those lines are clipping as expected, so tried to add the capital cities too in the same manner.

See also:

MIT Licensed