Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Choropleth Map

Public visualization

Viewing a saved revision (read-only)

8e55ac5cf49e4034a1787572c6822451

Fork of Choropleth Map

0 stars0🌍 Public
BBrian Tang
Last edited Nov 26, 2021
Created on Nov 26, 2021
Forked from Choropleth Map

This example visualizes world countries colored by economic grouping using an ordinal color scale with the spectral scheme. The map renders in SVG, with countries projected via d3.geoNaturalEarth1 and drawn using d3.geoPath, featuring hover highlighting and zoom behavior through d3.zoom. Data loads from World Atlas TopoJSON and TSV files, processed via topojson.feature and Promise.all. The legend component remains commented out, while the tooltip displays country names and economic categories via SVG title elements.

AI-generated description