Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Spinning Globe with capitals

Public visualization

Viewing a saved revision (read-only)

1b0d5a4b973e4d20902f6159d797cade

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, and add the equator. Then I realized that the graticule lines are clipping as expected, so tried to add the capital cities too in the same manner.

See also:

MIT Licensed