🌍 Public
Viewing a saved revision (read-only)
50f57fa7c1e74f30bae631eaba158d07
Loading and Parsing Corona Virus Data
This example displays the total number of global COVID-19 deaths from the Johns Hopkins time series dataset, formatted with commas and labeled with the latest date column. It renders the result in a large red `<pre>` element. The code uses React 16.9 with hooks (`useState`, `useCallback`, `useEffect`) and D3 v7’s `csv` and `format` functions to fetch and parse the data, then reduces the last column values to calculate the sum.
AI-generated descriptionThis program loads and paarses Johns Hopkins Covid19 Datasets