Pulling Live Coronavirus Data
✓ Published1🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed