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)

8473d0d0415d42d6b1d48c7d88ad53e5

Loading and Parsing Coronavirus Data

0 stars0🌍 Public
Zzhangwbhi
Last edited Sep 10, 2021
Created on Sep 10, 2021

This example displays basic statistics about the Johns Hopkins Coronavirus Dataset, showing the file size in kilobytes, row count, and column count in large text. It loads the CSV data with `d3.csv` and its promise-based `.then` method, then uses `d3.csvFormat` to calculate the data size. React is used as the framework, though the visualization itself is a simple text output via the DOM. The code also includes commented alternatives using `fetch` with `async`/`await` and `d3.csvParse`.

AI-generated description