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