Skip to main content
100%

Let's make a map with D3.js!

✓ Published2🌍 Public
Cchaimmaeee
Last edited Nov 25, 2020
Created on Nov 25, 2020

This example shows a world map rendered as a set of SVG paths, with countries filled in light green and the sphere background in blue. It uses D3.js v5 and the topojson library to load and convert geographic data from the world-atlas GeoJSON file into country features. The projection is set with `d3.geoNaturalEarth1`, and paths are generated through `d3.geoPath`. The map appears after the JSON data is fetched asynchronously, with each country drawn as an individually styled path element.

AI-generated description
MIT Licensed

Similar vizzes