Skip to main content
100%

World Map with Topojson data

✓ Published0🌍 Public
Ssudhamshu24
Last edited Apr 3, 2022
Created on Apr 3, 2022

This example displays a world map rendered as SVG paths, with countries in grey and yellow strokes against a red spherical backdrop. It uses the Mercator projection and D3’s `geoPath` to convert geographic coordinates into screen paths, while TopoJSON’s `feature` extracts country boundaries from a remote world.json file. The sphere and countries are appended directly to the SVG via D3’s `select` and data joins, with styling handled through CSS classes.

AI-generated description
MIT Licensed

Similar vizzes