Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Globe with Panning & Zooming

Public visualization

Viewing a saved revision (read-only)

e36a66c0062946aba3ed78bbbee646d3

Fork of Globe with Panning & Zooming

0 stars0🌍 Public
Llingjizhu@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

This example shows an interactive orthographic globe of the world, where users can click and drag to rotate the sphere and scroll to zoom in and out. The visualization displays country boundaries, a graticule, and an outline sphere, all rendered using the D3.js library. It leverages `d3.drag` for panning rotation and `d3.zoom` for scaling, with the globe’s projection updated via `d3.geoOrthographic` and `d3.geoPath`. Country data comes from the TopoJSON world atlas fetched from a CDN, with paths generated using `topojson.feature`.

AI-generated description

A globe with panning and zooming.

MIT Licensed