Covid-19 Cases from 2020 to 2023
✓ Published0🌍 Public
This interactive line chart visualizes COVID-19 case averages and death counts across U.S. states from 2020 to 2023, sourced from the New York Times rolling-averages dataset. A dropdown menu lets viewers toggle between the two metrics, triggering a smooth 1-second transition that redraws the line path. The visualization uses D3 v7 with an SVG renderer, employing `d3.line()` for path generation, `d3.scaleTime()` and `d3.scaleLinear()` for axes, and a color ordinal scale with `d3.schemeSet2`. Gridlines and labeled axes contextualize the trends.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed