Skip to main content
100%

Coronavirus Linear Y Axis

✓ Published1🌍 Public
TThomas Cormican
Last edited Jan 14, 2022
Created on Jan 14, 2022
Forked from React + D3 Axes

This example shows the global cumulative death toll from COVID-19 over time using a linear y-axis scale, plotted as a single thick black line in an SVG. It loads time-series data from the Johns Hopkins CSSE GitHub repository, transforming daily columns into date and death-total pairs. The chart uses React with D3 v7’s `scaleTime` and `scaleLinear`, along with `axisBottom` and `axisLeft` for gridlines. A marker line and label indicate the most recent date, while another marker at 5,000,000 deaths provides a reference point on the y-axis.

AI-generated description
MIT Licensed

Similar vizzes