Skip to main content
100%

d3 choropleth map

✓ Published0🌍 Public
AAndrew
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from HTML Starter

This choropleth map visualizes the estimated number of people in poverty per U.S. county for 2021, using a logarithmic color scale from white to dark orange. Hovering over a county reveals its exact poverty count via a tooltip. Built with D3 v5, the map uses `d3.geoPath` and `d3.scaleThreshold`, drawing county and state boundaries from topojson data, with a legend and color encoding derived from the `d3-scale-chromatic` scheme. The poverty data is loaded from a CSV containing FIPS codes and county-level values.

AI-generated description

An choropleth map in D3

BTW: The data was simplified to help with creating this visualization.

Link to original dataset: https://www.ers.usda.gov/data-products/county-level-data-sets/download-data/

MIT Licensed

Similar vizzes