Skip to main content
100%

Let's make a World Map - Cholropleth with interactions

✓ Published0🌍 Public
JJimMaltby
Last edited Nov 14, 2020
Created on Nov 5, 2020

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 description

A Cholropleth with interactions map of the world. From Curran Kelleher's: "Cholropleth Map with D3" .

MIT Licensed

Similar vizzes