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)

09af2b5dcdfb426f8b9a9c2246733177

Loading and Parsing Coronavirus Data

0 stars1🌍 Public
WWolfgang
Last edited Apr 9, 2021
Created on Apr 9, 2021

This example demonstrates how to load and parse the Johns Hopkins Coronavirus Dataset using D3 v6. The visualization displays three key statistics about the CSV file: its size in kilobytes, the number of rows, and the number of columns. The code uses `d3.csv` to asynchronously fetch the data from a GitHub URL, then leverages `d3.csvFormat` to calculate file size and accesses `data.columns` and `data.length` for column and row counts. Results are rendered as text in an HTML `<pre>` element using standard DOM methods.

AI-generated description

This program loads and parses the Johns Hopkins Coronavirus Dataset.