🌍 Public
Viewing a saved revision (read-only)
09af2b5dcdfb426f8b9a9c2246733177
Loading and Parsing Coronavirus Data
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 descriptionThis program loads and parses the Johns Hopkins Coronavirus Dataset.