Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Map

Public visualization

Fork of World Map

0 stars0🌍 Public
Ppemmasaniprudhvinadh
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from World Map

This example renders a natural Earth projection world map using D3 v5 and TopoJSON. It displays countries as green landmasses with black strokes against a blue spherical backdrop. The code fetches world boundary data from the world-atlas package, converts TopoJSON to GeoJSON with topojson.feature, and visualizes it using d3.geoNaturalEarth1, d3.geoPath, and SVG paths. A pre-defined sphere path establishes the globe’s outline before country features are appended.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed