Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Choropleth Map

Public visualization

Fork of Choropleth Map

0 stars0🌍 Public
CClara Hu
Last edited Mar 23, 2021
Created on Mar 23, 2021
Forked from Choropleth Map

This choropleth map colors countries by economy using world-atlas TopoJSON data. The visualization uses d3.geoNaturalEarth1 projection with d3.geoPath to render the map, and d3.scaleOrdinal with schemeSpectral for color encoding. The color legend, built with a custom colorLegend function, displays the ordinal scale. Interactive pan and zoom is implemented via d3.zoom, and hovering highlights countries in red.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed