Skip to main content
100%

Interactive map with D3.js

✓ Published0🌍 Public
MMartin Christensen
Last edited Dec 31, 2019
Created on Dec 30, 2019

This interactive map visualizes world countries using a natural Earth projection, with hover highlighting and zoom-and-pan navigation. The D3.js code loads GeoJSON country boundaries from a TopoJSON dataset via `d3.json` and `topojson.feature`, then renders them as SVG paths with `d3.geoPath`. A blue sphere path represents the globe’s outline. The `d3.zoom` API enables user interaction by applying transform events to the SVG group, while CSS `:hover` styles change country fills to red.

AI-generated description
MIT Licensed

Similar vizzes