Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Course Code Along - Choropleth Map

Public visualization

D3 Course Code Along - Choropleth Map

1 star0🌍 Public
Nnnminh199914
Last edited Aug 13, 2020
Created on Aug 13, 2020

A choropleth map colors world countries by income group using a natural Earth projection, with a color legend and zoom interaction. It uses `d3.geoNaturalEarth1` and `d3.geoPath` to render the GeoJSON features, while `d3.scaleOrdinal` and `schemeReds` map categorical values to colors. The legend updates with a transition, and data comes from World Atlas TopoJSON and TSV files. Hovering highlights countries, and mouse-wheel zoom is supported via `d3.zoom`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed