Skip to main content
100%

World Map

✓ Published1🌍 Public
Ppranav-vis
Last edited Sep 18, 2021
Created on Sep 6, 2021

This example renders a world map using D3’s `geoNaturalEarth1` projection and `geoPath` to draw land masses from TopoJSON data (countries-50m.json), with graticules and country borders overlaid. The map fills land with a teal color against a gray sphere, while interior boundaries appear as lighter strokes. Built with React for component structure, the visualization fetches the TopoJSON via `d3.json`, converts it using `topojson.feature` and `topojson.mesh`, and renders the final SVG paths.

AI-generated description

Rendering CSS named colors from MDN.

MIT Licensed

Similar vizzes