Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A horrible horrible attempt at d3

Public visualization

A horrible horrible attempt at d3

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed