Skip to main content
Public

Share visualization

Loading preview…

Fork of Cities on a Globe

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Cities on a Globe

0
CCoollRock
Last edited Sep 28, 2021
Created on Sep 28, 2021
Forked from Cities on a Globe

This interactive globe visualization displays cities with over 100,000 inhabitants as circles sized by population, rendered as SVG with D3 v4. Users can pan and zoom the orthographic projection, with drag interactions updating the rotation and a zoom handler adjusting scale. The globe alternates between 110m and 50m resolution land boundaries from the World Atlas TopoJSON during motion, while city data from a GeoNames CSV is projected using `d3.geoPath`. Hovering reveals a tooltip with city name and population via `d3-tip`.

AI-generated description

A globe with pan & zoom showing circles for each city of over 100,000 inhabitants. Data from Geonames, preprocessed. The same data is used in World City Explorer.

Uses world-110m and world-50m geographic shapes from TOPOJSON World Atlas.

Inspired by

forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/0bb64d8f56042e2480c908b0985f063b'>Orthographic Zoom III</a>

Imported to VizHub from bl.ocks.org: Cities on the Globe

Comments

Sign in to join the discussion.

MIT Licensed