🌍 Public
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 descriptionMIT Licensed
Comments
Sign in to join the discussion.