Summarizing Coronavirus Data
✓ Published0🌍 Public
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 descriptionMIT Licensed