Skip to main content
100%

Loading and parsing Coronavirus data - with D3

✓ Published1🌍 Public
PPeter Krevenets
Last edited Mar 31, 2021
Created on Mar 4, 2021

This example demonstrates how to load and parse the Johns Hopkins Coronavirus dataset using D3’s `d3.csv` method. It displays a summary of the fetched data in a large `<pre>` element, showing the file size in kilobytes, the total column count, and the number of data rows. The code retrieves the data from a raw GitHub URL, and uses `d3.csvFormat` to calculate the file size and `data.columns` to determine the column count. It uses D3 v6 (via `d3.min.js`) and runs entirely in the browser through a bundled script.

AI-generated description
MIT Licensed

Similar vizzes