Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing Coronavirus Data

Public visualization

Loading and Parsing Coronavirus Data

0 stars1🌍 Public
Ffjvoris
Last edited Mar 10, 2023
Created on Mar 10, 2023

This example demonstrates how to load and parse a global coronavirus deaths time-series dataset. It fetches CSV data from the Johns Hopkins CSSE GitHub repository using the `d3.csv` method, which returns a Promise. After loading, the program computes and displays summary statistics—the file size in kilobytes, the number of data rows, and the number of columns—within a large HTML `<pre>` element. The visualization uses D3 v5’s `csvFormat` to calculate the byte length of the formatted data, highlighting a straightforward data-processing workflow without any graphical chart.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed