Choropleth map in D3
This choropleth map visualizes 2021 poverty estimates for U.S. states, with each state colored according to its poverty rate using a quantized blue color scale. The visualization loads geographic boundaries from a TopoJSON file and joins them with CSV data containing state-level poverty percentages. Built with D3 v7, the example uses `d3.geoPath` with the `geoAlbersUsa` projection to render the map as SVG paths, while a legendQuant scale displays the color-to-value mapping. The code also implements mouseover interactions that highlight states and tooltip text showing the poverty rate for each region.
AI-generated descriptionPoverty estimates for U.S., States, and counties, 2021 Source: U.S. Department of Commerce, Bureau of the Census, Small Area Income and Poverty Estimates (SAIPE) Program. For definitions of rural classifications, see the USDA, Economic Research Service webpage 'Rural Classifications' in the 'Rural Economy & Population' topic. Note that counties not existing when rural classifications were determined will not have values for those fields. Variable descriptions (column names) are found in the second tab in this workbook. This table was prepared by USDA, Economic Research Service. Data as of June 16, 2023. Contact: Austin Sanders, austin.sanders@usda.gov