Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
EEdoardoRegini
Last edited Apr 9, 2020
Created on Apr 9, 2020
Forked from Black Canvas

A D3.js visualization renders a world map using a natural Earth projection, coloring countries light green against a dark blue ocean sphere. The example demonstrates geographic data mapping by fetching TopoJSON country boundaries from the world-atlas dataset and converting them to GeoJSON with topojson.feature. SVG paths are generated with d3.geoPath and the geoNaturalEarth1 projection, with each country receiving stroke styling to show borders. The code imports select, json, and geoPath from d3.v5, showcasing a minimal, single-file approach to interactive map creation.

AI-generated description
MIT Licensed

Similar vizzes