🌍 Public
Viewing a saved revision (read-only)
9734e694bacc450e8c8ee14b42a589ef
cheap trick
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 descriptiondraw a world map 放大/缩小,变色,显示名称