Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 map drag demo

Public visualization

Fork of D3 map drag demo

0 stars0🌍 Public
RrayaneB0t
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from D3 map drag demo

This example shows an interactive orthographic globe rendered with SVG, where users can drag to rotate the Earth and see country boundaries and graticule lines. The code uses `d3.geoOrthographic` for projection and `d3.geoPath` to draw geographic features from TopoJSON data sourced from the world-atlas package. Drag events update the projection’s rotation, while zoom is handled via `d3.zoom`. Country names are loaded from a TSV file and displayed as tooltips using SVG `<title>` elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed