Skip to main content
100%

World Map

✓ Published0🌍 Public
LLeah Mitchell
Last edited Sep 28, 2021
Created on Sep 20, 2021

This world map visualizes country boundaries, rendered as SVG paths using D3's `geoPath` and `geoNaturalEarth1` projection. The map loads geographic data from the world-atlas package, combining a TopoJSON file with a TSV file to attach country names to each region. Hovering over a country turns it red, and a native SVG `<title>` element displays the country name. The map also includes a blue sphere background and supports zooming via the `d3.zoom` API, applying transformations to the country group.

AI-generated description

An exercise in making a world map and using hover features to highlight/display information.

MIT Licensed

Similar vizzes