Skip to main content
100%

Summarising Coronavirus Data

✓ Published0🌍 Public
Vvmonney
Last edited Oct 12, 2022
Created on Oct 12, 2022

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 description

This program loads and parses the Johns Hopkins Coronavirus dataset.

MIT Licensed

Similar vizzes