🌍 Public
Viewing a saved revision (read-only)
a400a10e8c184248b7d733efbc89e7fb
Summarizing Coronavirus Data
This example summarizes the Johns Hopkins Coronavirus Dataset, displaying the total global death count and the latest recorded date in a large text format. It loads the time-series CSV, extracts the final column of data, and sums all values using JavaScript's `reduce` method. The `d3.csv` function parses the data, while the `d3.format` API formats the number with commas. The resulting message is rendered inside a `<pre>` element, providing a stark numerical overview of the pandemic's impact.
AI-generated descriptionThis program loads and parses the Johns Hopkins Coronavirus Dataset