🌍 Public
Viewing a saved revision (read-only)
a3175aba0c7a4d6f84c069785fb55cc8
Summarising Coronavirus Data
This example summarizes the global death toll from the Johns Hopkins Coronavirus dataset. It displays a single large text element showing the total number of deaths and the date of the latest data column. The visualization loads the CSV with `d3.csv`, extracts the final column, and sums its numeric values using `Array.reduce`. It formats the result with `d3.format` and updates the page’s `pre` element via `getElementById`.
AI-generated descriptionThis program loads and parses the Johns Hopkins Coronavirus dataset.