Gist 075cee318faa9088bc16bd9eb985a9a5
✓ Published0🌍 Public
AAlexanderDavidson
Last edited Apr 20, 2017
Created on Apr 20, 2017
This example shows a world map rendered from a TopoJSON file using a Mercator projection, with pan and zoom enabled for interactive exploration. The map is drawn as SVG paths via `d3.geoPath` and a `d3.geoMercator` projection, centered and scaled to display global geography. A `d3.zoom` handler updates the map’s transform and re-projects paths on each interaction. The code includes commented-out attempts to plot city coordinates from a CSV, but the visible implementation focuses solely on the country boundaries from the `world-110m2.json` data source.
AI-generated description