Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 Choropleth Map

Public visualization

d3 Choropleth Map

0 stars1🌍 Public
Jjayjoepark
Last edited Mar 26, 2019
Created on Mar 26, 2019
Forked from d3 Choropleth Map

This d3 Choropleth Map visualizes world countries colored by their economic classification from a World Atlas dataset. It uses an SVG rendering with a natural Earth projection and a spectral color scale for the legend. The code employs `d3.geoPath`, `d3.geoNaturalEarth1`, and `topojson.feature` to process and draw the map, while `d3.scaleOrdinal` and `schemeSpectral` define the color categories. A custom legend component displays the color scale with circles and labels, and hovering a country turns it red.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed