Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
NNita
Last edited Nov 24, 2020
Created on Nov 24, 2020

This example shows a world map rendered as SVG paths, with countries filled in light green against a dark blue spherical backdrop. Using D3 v5, it loads world-110m TopoJSON data via `d3.json`, converts the TopoJSON features with `topojson.feature`, and projects them using `d3.geoNaturalEarth1` and `d3.geoPath`. A separate path for the sphere applies the same projection to outline the globe, while country borders are drawn with a subtle black stroke.

AI-generated description
MIT Licensed

Similar vizzes