HTML Starter
✓ Published2🌍 Public
A world map rendered with SVG using D3.js v5 and the topojson library displays country boundaries via a Natural Earth projection. Each country is colored with a categorical ordinal color scale based on the result of its numeric ID modulo 10, which is also shown in a tooltip on hover. The map supports zooming through D3’s zoom behavior, and hovering highlights a country in red. A color legend, built from the ordinal scale’s domain, is positioned at the top right.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed