Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
SSophia Murage
Last edited Apr 6, 2020
Created on Apr 6, 2020

This example shows an orthographic world map rendered as an SVG, with countries filled in green against a light blue sphere. It uses D3.js version 5 functions `d3.geoOrthographic` and `d3.geoPath` to project and draw geographic features, alongside TopoJSON’s `feature` method to extract country boundaries from the world-atlas dataset. The map initially displays a global view, with the sphere outline and country paths appended to the SVG canvas.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a map.

MIT Licensed

Similar vizzes