Skip to main content
100%

Map D3 Cheap Tricks

✓ Published0🌍 Public
CChristopher Repka
Last edited Sep 23, 2018
Created on Sep 21, 2018
Forked from Map D3

This map visualizes world countries in gold on a near-opaque black sphere, with country names from the World Atlas TSV file shown as hover tooltips. Built with D3.js and TopoJSON, the example uses `geoMercator` for the map projection and `geoPath` to generate SVG paths for each country from the 50m GeoJSON dataset. A zoom interaction is implemented via D3's `zoom` event, enabling pan and scale transformations on the `g` element. The code also demonstrates map interactions by filling countries with crimson on mouse hover.

AI-generated description
MIT Licensed

Similar vizzes