Skip to main content
100%

D3.js map tricks

✓ Published0🌍 Public
LLucasj01UK
Last edited May 28, 2020
Created on May 28, 2020

This example demonstrates an interactive world map built with D3.js, rendered as SVG, and integrated into a React framework. It visualizes country boundaries using Natural Earth projection via `d3.geoNaturalEarth1` and `d3.geoPath`, with data sourced from the World Atlas TopoJSON files. Map features include zoom and pan controls implemented with `d3.zoom`, hover effects that change country fill colors, and tooltips showing country names derived from TSV metadata. The visualization also displays a styled ocean sphere and uses `topojson.feature` to convert TopoJSON into GeoJSON for rendering.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes