Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing Coronavirus Data

Public visualization

Viewing a saved revision (read-only)

84d6c4ee23ec4a708a17cef5c1aacf65

Loading and Parsing Coronavirus Data

0 stars1🌍 Public
Wwindwaver
Last edited Apr 13, 2021
Created on Apr 13, 2021

This example demonstrates loading a global COVID-19 death time-series dataset using D3 v5. It fetches a CSV file from the Johns Hopkins CSSE GitHub repository and parses it with `d3.csv`. The visualization displays a large-text summary showing the data’s size in kilobytes, the number of rows, and the number of columns, computed via `d3.csvFormat` and the parsed array’s properties. It relies on the native `fetch` API and a promise handler, with commented alternatives using `async`/`await` and nested callbacks.

AI-generated description