Skip to main content
Public

Share visualization

Loading preview…

Loading and Parsing Coronavirus CSV Data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Loading and Parsing Coronavirus CSV Data

0 stars1Public
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

Comments

Sign in to join the discussion.

MIT Licensed