🌍 Public
Viewing a saved revision (read-only)
14d7823ecce040c48daf9f2fad0e75bd
Summarizing Coronavirus Data
This example summarizes global coronavirus mortality data by displaying a single large number: the total reported deaths. It retrieves a CSV file from the Johns Hopkins CSSE GitHub repository, identifies the most recent date column, and sums all values across countries and regions. The result, formatted with commas using `d3.format`, appears in a `<pre>` element styled with dark red text. The code relies on D3 v5’s `d3.csv` promise-based loader to fetch and parse the remote data asynchronously.
AI-generated description