Skip to main content
100%

yi xiao Map

✓ Published5🌍 Public
Aanduskong
Last edited Dec 17, 2020
Created on Dec 17, 2020
Forked from yi xiao Map

This visualization displays a choropleth map of the United States, coloring each state by the log-transformed seven-day average of positive COVID-19 test results. The map also uses SVG tooltips to show each state’s name, seven-day death average, and positive test average. It loads CSV data and TopoJSON geometry, projecting it with `d3.geoAlbersUsa` and drawing paths via `d3.geoPath`. The color scale is a threshold scale from `d3.scaleThreshold` using `d3.schemeOrRd`, and it includes a custom color legend built with D3 selections.

AI-generated description
MIT Licensed

Similar vizzes