🌍 Public
Viewing a saved revision (read-only)
4caf9f80fbd64a819bb47c04d1ec1753
Loading and Parsing Coronavirus Data
This example demonstrates the size and structure of the Johns Hopkins Coronavirus Dataset by displaying three key metrics: the total file size in kilobytes, the number of rows, and the number of columns. It loads a global CSV file of COVID-19 deaths using `d3.csv`, then formats the data with `d3.csvFormat` to calculate its byte count. The resulting statistics are displayed in large text via a `<pre>` element, with values rounded using `Math.round`.
AI-generated descriptionThis program loads and parses the Johns Hopkins Coronavirus Dataset