Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3

Public visualization

Let's make a map with D3

0 stars1🌍 Public
NNikki-gea
Last edited Aug 26, 2020
Created on Aug 26, 2020

This example renders a world map using D3 v5 and TopoJSON, loading country boundaries from the World Atlas TopoJSON dataset. It displays the Earth’s sphere in light blue and each country as a gray filled path with white strokes, projected using a Natural Earth projection. The code employs `d3.geoPath` with a `d3.geoNaturalEarth1` projection, and `topojson.feature` to convert TopoJSON data into GeoJSON features for SVG path generation.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed