Fork of COVID-19 Map (Positive Cases)
This choropleth map of the United States uses a logarithmic color scale to show the relative number of COVID-19 cases per state, based on a seven-day average. A Voronoi overlay, built with `d3.Delaunay`, expands each state’s hover target for easier tooltip interaction, displaying details like death tolls, test counts, and positivity rates. The map is rendered with `d3.geoPath` and `geoAlbersUsa`, using TopoJSON state boundaries, while a custom color legend communicates the log-transformed case thresholds. React manages the component state, and all SVG elements are styled with hover effects in CSS.
AI-generated descriptionThe colours of the states represent the relative number of COVID-19 cases (log number of cases per day) during the past 7 days.
Project for STAT5702 by Andy Cho, Andus Kong, and Xuanhao Wu