Skip to main content
100%

Let's make a map with D3.js

✓ Published1🌍 Public
HHasideluxe
Last edited Jul 27, 2020
Created on Jul 27, 2020

This example shows a geographic world map rendered as an SVG using D3.js and TopoJSON. It displays country boundaries and a blue sphere outline, with countries filled in light green and subtle black strokes. The code loads world-atlas data via D3’s `json` method and converts TopoJSON features using `topojson.feature`. It applies a natural Earth projection with `d3.geoNaturalEarth1` and generates paths via `d3.geoPath`. The visualization relies on D3 v5 and TopoJSON v3 scripts.

AI-generated description
MIT Licensed

Similar vizzes