Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
OOliverlee1003
Last edited Feb 21, 2020
Created on Feb 21, 2020

This example shows a world map rendered as an SVG, with countries filled in light green against a blue sphere background. It uses D3 v5 to load GeoJSON data from the world-atlas TopoJSON file, converting it with `topojson.feature`. The map is projected using `d3.geoNaturalEarth1` and drawn with `d3.geoPath`. A separate path represents the sphere outline. The visualization updates dynamically once the data loads, adding country paths to the SVG.

AI-generated description
MIT Licensed

Similar vizzes