Skip to main content
100%

Fork of Let's make a map with D3.js!

✓ Published1🌍 Public
PPiotr Paszek
Last edited Jun 11, 2021
Created on Apr 24, 2021

This example displays a world map using a natural Earth projection, with countries filled in light green against a blue ocean sphere. It loads geographic data from the world-atlas TopoJSON dataset and converts it to GeoJSON features using the topojson `feature` function. The visualization renders paths with d3.geoPath and d3.geoNaturalEarth1, appending each country as an SVG path element. The code demonstrates a straightforward D3.js v6 workflow for projecting and drawing vector map boundaries.

AI-generated description
MIT Licensed

Similar vizzes