Skip to main content
100%

Let's make a MAP with D3.js

✓ Published1🌍 Public
LLucas Meirelles
Last edited Sep 2, 2020
Created on Sep 2, 2020

This example shows a world map rendered in an SVG using D3.js with an orthographic projection, displaying countries as light-green paths with subtle black strokes against a dark blue sphere background. The visualization loads geographic data from the world-atlas TopoJSON file (countries-110m.json) and converts it to GeoJSON using the topojson `feature` function. The code specifically uses D3 v5 APIs including `d3.geoOrthographic`, `d3.geoPath`, and `d3.json` to project and draw the map, with commented alternatives for other projections like Mercator and Natural Earth.

AI-generated description
MIT Licensed

Similar vizzes