🌍 Public
Let's make a map with D3.js
This example displays a natural Earth map with countries rendered as light green paths on a blue sphere, with hover effects that highlight individual countries in red. It uses D3.js v5’s `geoNaturalEarth1` projection, `geoPath` for geometry rendering, and the `topojson` library’s `feature` function to convert TopoJSON data. The map zooms via D3’s `zoom` event, and country names are joined from a TSV file using ISO numeric codes.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.