Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Map with D3.js!

Public visualization

Viewing a saved revision (read-only)

91bdb1e495784da9bd0058822f17c44b

Fork of World Map with D3.js!

0 stars1🌍 Public
Bbhargavarathod
Last edited Mar 31, 2022
Created on Mar 31, 2022

This example displays a world map rendered as blue SVG paths for the oceans and green-filled country polygons with black strokes, based on geographic data from the world-atlas TopoJSON dataset. The code imports `geoEquirectangular` and `geoPath` from d3 to project coordinates, and uses `feature` from topojson to convert TopoJSON topology into GeoJSON features. A single empty path is first appended for the sphere outline, then country paths are added dynamically once the JSON data loads asynchronously.

AI-generated description