Skip to main content
Public

Share visualization

Loading preview…

Fork of Loading and Parsing CORONAVIRUS

vizhub.com

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

Before sharing, review the publishing checklist.

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

Fork of Loading and Parsing CORONAVIRUS

1
Jjesramyep1263
Last edited Jan 4, 2021
Created on Jan 3, 2021

This example demonstrates how to load and parse global COVID-19 death data from a CSV file hosted on GitHub. Using d3.csv, it fetches the time-series dataset and calculates the total deaths from the most recent date column. The interface displays summary statistics, including the CSV file size in kilobytes, the number of rows, the number of columns, and the label of the latest data column. The code also includes commented-out alternatives using fetch with async/await and a nested promise chain.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed