Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

cheap trick

Public visualization

Viewing a saved revision (read-only)

f0a71e03a0f4410f946bf8f9450df563

cheap trick

0 stars0🌍 Public
Wwyh1029
Last edited Apr 6, 2020
Created on Apr 6, 2020
Forked from draw a world map

This example displays an interactive world map with countries filled in light green against a dark blue spherical backdrop. Users can zoom and pan the map, and hovering over a country turns it red while revealing its name in a tooltip. Built with D3 v5 and the topojson library, it loads country boundary data from the world-atlas package and renders it using a geoEqualEarth projection with d3.geoPath. The map background is drawn as a sphere, and zoom interactions are handled through D3’s zoom event.

AI-generated description

draw a world map 放大/缩小,变色,显示名称