Skip to main content
100%

World Map

✓ Published0🌍 Public
MManoj Kolluri
Last edited Jul 17, 2022
Created on Jul 17, 2022
Forked from HTML Starter

This example shows a world map rendered as an SVG, with countries filled in tan and outlined in black, set against a light blue sphere. It uses the D3.js library (v5) to load a TopoJSON file from a GitHub gist, extract country features via the `topojson` API, and project them using `d3.geoNaturalEarth1` and `d3.geoPath`. The map is drawn by appending path elements to an SVG element, with styling applied via CSS classes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes