Skip to main content
100%

Fork of Scatter Plot COVID-19 Vaccination and Cases with Dual Axis

✓ Published0🌍 Public
DDonald Bagwell
Last edited Dec 20, 2023
Created on Dec 20, 2023

This scatter plot visualizes COVID-19 vaccination rates and reported case counts over time, using a dual y-axis to compare the two metrics. The chart demonstrates a reduction in cases as vaccination increases, with blue circles representing vaccination proportions and gray circles showing seven-day average case counts. The visualization uses D3 v6 with `scaleTime`, `scaleLinear`, `d3.axisLeft`, `d3.axisRight`, and `selection.join` for animated circle updates. Data comes from Our World in Data and the New York Times rolling averages, rendered as SVG elements with CSS-styled axes.

AI-generated description

A demonstration of how to start using D3 version 6.

COVID-19 vaccination rates in blue versus reported cases in gray.

Data are from CDC COVID-19 US population vaccination counts as proportions of the US population size and the NYT COVID-19 infection 7-day trailing average cases counts for the US population using a dual y-axis for the two public use data sets.

Credits: *reusable scatter plot inspired by

Towards Reusable Charts

Observable: selection.join

Curran Kelleher Reusable D3 Scatter Plot B&W*

MIT Licensed

Similar vizzes