Skip to main content
100%

Loading and Parsing COVID data

✓ Published0🌍 Public
DDannyLord
Last edited Jun 13, 2022
Created on Jun 13, 2022

This example displays the total number of COVID-19 deaths worldwide as a large text readout, along with the most recent date of the data. It loads a CSV file from the CSSE GitHub repository using d3.csv, extracts the latest date column, and sums all values with a reduce function. The formatted total uses d3.format to add comma separators, and the result is injected into an HTML pre element via the DOM. The visualization relies on D3 v5’s data loading and formatting APIs.

AI-generated description
MIT Licensed

Similar vizzes