Skip to main content
100%

Coronavirus Basic Line Chart with 1,000,000 Marker Line with React + d3 axes

✓ Published1🌍 Public
BBen Brophy
Last edited Jan 7, 2022
Created on Jan 7, 2022

This example shows the global death toll from COVID-19 as a line chart over time, with a horizontal marker at one million deaths and a vertical marker at the most recent date. The chart uses d3.scaleTime and d3.scaleLinear to map dates and death totals to SVG coordinates, while d3.line generates the path. React components wrap the axes, created with d3.axisBottom, and custom marker lines highlight key thresholds. Data is loaded from the CSSE COVID-19 time series CSV and aggregated by summing daily totals across all countries.

AI-generated description
MIT Licensed

Similar vizzes