🌍 Public
Viewing a saved revision (read-only)
ac5bf9b1c2e9483590fe8a35e43ef40b
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