Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

loading and parsing CORONA data

Public visualization

loading and parsing CORONA data

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed