🌍 Public
Viewing a saved revision (read-only)
78c95eeefd5a4b0e8b9d7f47448294d4
A horrible horrible attempt at d3
This example displays a basic world map rendered as SVG paths using the Natural Earth projection, with countries filled in light green and a blue sphere background. It implements zoom and pan interactions through d3.zoom, applying transforms to a group element. The code loads geographic data from the world-atlas TopoJSON package and country names from a corresponding TSV file, using d3.geoPath and topojson.feature to generate the map. A hover effect changes country fill to white, shown via CSS classes.
AI-generated description