Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed