Skip to main content
100%

Pulling Live Coronavirus Data

✓ Published1🌍 Public
SSerind Joshua McCue
Last edited Aug 24, 2022
Created on Aug 24, 2022

This example displays cumulative COVID-19 deaths over time, using a logarithmic y-axis to accommodate exponential growth. The React app fetches live data from the Johns Hopkins CSSE GitHub repository via `d3.csv`, then transforms it into date/death pairs. A `d3.line` generator with `scaleTime` and `scaleLog` renders the SVG path, while `axisBottom` and `axisLeft` produce gridlines with formatted tick labels. Unused `XMarkerLine` and `YMarkerLine` components show structural possibilities for annotations, though they are not invoked.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes