Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Ssonyrimawan
Last edited Feb 26, 2020
Created on Feb 26, 2020

This example demonstrates a world map rendered with D3.js using the Natural Earth projection. It displays a blue sphere backdrop with light green country polygons outlined in black, created from TopoJSON data of Moscow. The code uses `d3.geoPath` and `d3.geoNaturalEarth1` to project geographic coordinates, while `topojson.feature` extracts the geographic features from the loaded JSON file. The SVG output includes a distinct sphere path and country paths appended dynamically after the data loads.

AI-generated description
MIT Licensed

Similar vizzes