Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a map

Public visualization

Making a map

0 stars2🌍 Public
SSharvariPhadke
Last edited Jan 23, 2021
Created on Jan 22, 2021
Forked from Making a face

This example displays a world map using a natural Earth projection, with each country rendered as a light-green SVG path that darkens on hover. The map is built with the `d3.geoNaturalEarth1` projection and `d3.geoPath`, while TopoJSON and TSV files from the world-atlas package supply country boundaries and names. The `d3.zoom` API enables panning and zooming of the entire map group, and hover tooltips show the country name via a `<title>` element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed