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 stars1🌍 Public
BBazarbayevManas
Last edited Aug 30, 2019
Created on Aug 30, 2019

This example shows a world map rendered as SVG paths, with countries filled in light green and a blue sphere representing the globe. The map uses the Natural Earth dataset from the world-atlas package, loaded as TopoJSON and converted into geographic features via the `topojson` library. The code projects these features using D3’s `geoNaturalEarth1` projection and draws them with `geoPath`. The sphere background is created by passing a `{ type: 'Sphere' }` object to the same path generator, and styling is applied via CSS classes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed