Skip to main content
100%

Fork of Let's make a map with D3.js!

✓ Published0🌍 Public
Eeravellisaimeghana
Last edited Apr 4, 2022
Created on Apr 4, 2022
Forked from World Map

This example displays a world map as an SVG, with countries shown in light green on a blue sphere background. It uses D3.js v5 for map projections and rendering, specifically the `geoNaturalEarth1` projection and `geoPath` to convert geographic coordinates into SVG paths. The map data comes from the world-atlas package, loaded as TopoJSON and processed with the `topojson` library’s `feature` function. The page is built with a React starter template, though the main logic runs through a bundle.js file that fetches country boundaries and draws them, including a background sphere path drawn first.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes