Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js!

Public visualization

Let's make a map with D3.js!

0 stars0🌍 Public
AAPIvahnenko
Last edited Mar 6, 2020
Created on Mar 6, 2020

This example displays a basic world map using a natural Earth projection, with dark gray landmasses on a near-black globe sphere. The map is rendered as SVG paths generated from TopoJSON country boundaries loaded from the world-atlas package. It uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to convert geographic features into visible shapes. The code fetches the dataset with `json`, processes it via TopoJSON’s `feature` method, and appends each country path to the SVG container.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed