Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
NNita
Last edited Nov 7, 2018
Created on Oct 26, 2018

This example builds an interactive SVG map of the world using D3.js v5 and the topojson library. It renders a natural Earth projection with blue oceans and light green countries, using data from the world-atlas GeoJSON file. The code employs `d3.geoPath` and `d3.geoNaturalEarth1` to project and draw geographic features, with `topojson.feature` converting the TopoJSON source into usable polygons. Each country appears as a path with a subtle black stroke.

AI-generated description
MIT Licensed

Similar vizzes