Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ice8-vignesh

Public visualization

Fork of Fork of ice8-vignesh

0 stars0🌍 Public
YYeeleng Scott Vang
Last edited Jun 29, 2023
Created on Jun 28, 2023

This visualization presents an interactive world map built with D3 and TopoJSON, letting users explore countries through an orthographic projection that can be rotated by dragging. Clicking the United States switches the map to a Mercator projection, while clicking any other country returns it to the orthographic view. The code uses `d3.geoPath` for rendering, `d3.drag` for rotation, `d3.zoom` for scaling, and loads country boundaries from the World Atlas TopoJSON dataset with names from a TSV file. SVG paths with CSS hover effects display the geographic features.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed