Skip to main content
100%

Let's create a world map (geoNaturalEarth1)2 - with d3

✓ Published0🌍 Public
AAsperge-Atomique
Last edited Oct 7, 2019
Created on Oct 7, 2019

This example displays a world map rendered with the geoNaturalEarth1 projection, showing countries as light-green polygons with black outlines against a dark-blue spherical background. It loads geographic data from the world-atlas TopoJSON dataset via d3.json, then converts the TopoJSON features into GeoJSON using the topojson.feature API. The d3.geoPath generator projects and draws each country path onto an SVG canvas, while the sphere outline is created by passing a Sphere object to the same path generator.

AI-generated description
MIT Licensed

Similar vizzes