Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Map with Topojson data

Public visualization

World Map with Topojson data

0 stars0🌍 Public
PPrathyusha0304
Last edited Apr 3, 2022
Created on Apr 3, 2022

This example displays a world map using TopoJSON data, rendering countries as blue-filled paths with pink strokes against a white spherical backdrop. It uses D3 v5’s `geoMercator` projection and `geoPath` to convert geographic coordinates into SVG paths, while the TopoJSON library’s `feature` method extracts country geometries from a remote JSON file. The visualization loads data asynchronously via `json` and appends each country path to the SVG canvas, demonstrating a straightforward choropleth-free baseline of global boundaries.

AI-generated description

World Map with Topojson data

Comments

Sign in to join the discussion.

MIT Licensed