Skip to main content
100%

D3 Choropleth Map - interactable

✓ Published0🌍 Public
YYoung Song
Last edited Jun 27, 2022
Created on Jun 26, 2022
Forked from D3 Choropleth Map

This interactive choropleth map visualizes world economies using a color-coded legend. Users can click legend items to highlight countries matching the selected economic category, with non-matching countries dimmed to 20% opacity. The map uses D3 v7 with d3.geoNaturalEarth1 projection, d3.geoPath for SVG rendering, and d3-scaleOrdinal with d3.schemeSpectral. Data comes from World Atlas TopoJSON and TSV files, with the legend built through reusable functions that manage unidirectional data flow and zoom support.

AI-generated description
  • Making the Color Legend Clickable
  • Implementing Unidirectional Data Flow
  • Highlighting the selected color value
  • Componentizing the Choropleth Map
  • Highlighting countries using the selected color value
MIT Licensed

Similar vizzes