Skip to main content
100%

World Map Example

✓ Published0🌍 Public
DDeepanshuu
Last edited Jul 29, 2019
Created on Jul 29, 2019
Forked from World Map Example

This example renders a natural Earth world map in an SVG using D3.js v5. It draws a blue sphere backdrop and then loads country boundaries from a TopoJSON file via `d3.json` and the `topojson` library’s `feature` method. The projection uses `d3.geoNaturalEarth1` with `d3.geoPath` to generate the country paths, which are filled light green with semi-transparent black strokes. The map displays static country outlines without interaction or additional data layers.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes