Skip to main content
100%

Loading and Parsing Coronavirus CSV Data

✓ Published1🌍 Public
CChris Briggs
Last edited Nov 19, 2021
Created on Nov 19, 2021

This example demonstrates loading and parsing the Johns Hopkins Coronavirus global deaths time-series CSV dataset, displaying its size in kilobytes, row count, and column count. It uses d3.csv to fetch and parse the remote CSV file, then calls d3.csvFormat on the resulting data to measure its formatted length. The interface presents these metrics in a large HTML `<pre>` element, with the React framework integrating the D3 v5 code. The code also comments on alternative approaches using fetch, async/await, and nested promises.

AI-generated description
MIT Licensed

Similar vizzes