Skip to main content
100%

loading and parsing CORONA data

✓ Published0🌍 Public
KKolezhannochka
Last edited Jan 29, 2022
Created on Jan 29, 2022

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
MIT Licensed

Similar vizzes