🌍 Public
Viewing a saved revision (read-only)
a538d67bd6b6468b8b28561dd3da1c0e
loading and parsing CORONA data
This example demonstrates the loading and parsing of a global COVID-19 deaths time-series dataset from the Johns Hopkins CSSE GitHub repository. The React component uses the `useState` and `useEffect` hooks to asynchronously fetch the CSV file with d3.csv, then displays the total number of deaths from the most recent date column. The `message` module exports a function that extracts the last data column, sums all row values using `reduce`, and formats the result with d3’s `format(',')` for a readable output.
AI-generated description