Skip to main content
100%

A horrible horrible attempt at d3

✓ Published0🌍 Public
LLeoBergqvist
Last edited Feb 23, 2020
Created on Feb 22, 2020

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
MIT Licensed

Similar vizzes