Viewing a saved revision (read-only)
388eeda3b6d84a18aa71e5bdf79b3ab1
Let's make a World Map - Cholropleth with interactions
This example presents an interactive choropleth world map built with D3 v5 and TopoJSON, using a natural Earth projection rendered as SVG. The map colors countries by continent using a categorical color scale, with specific overrides for the United Kingdom and Egypt in green and orange. A zoom interaction enables panning and scaling, while a legend widget displays the color scale domain. Data is loaded from the world-atlas package, combining TSV metadata with TopoJSON geometry. Hovering reveals a tooltip with country name, economy, and continent information via appended title elements.
AI-generated descriptionA Cholropleth with interactions map of the world. From Curran Kelleher's: "Cholropleth Map with D3" .