Skip to main content
100%

Let's make a map D3.js

✓ Published1🌍 Public
JJoachim Klug
Last edited Jan 20, 2021
Created on Sep 25, 2020

This example displays world countries on a rotating orthographic globe rendered as an SVG sphere with light green landmasses. The visualization loads geographic data from the World Atlas TopoJSON dataset via `d3.json`, then converts it to GeoJSON using TopoJSON’s `feature` method. D3’s `geoOrthographic` projection and `geoPath` generate the country outlines, while the sphere background is drawn using a GeoJSON Sphere object. The code imports specific D3 modules (`select`, `json`, `geoPath`, `geoOrthographic`) and styles the map with CSS classes.

AI-generated description
MIT Licensed

Similar vizzes