Skip to main content
Public

Share visualization

Loading preview…

Loading and Parsing data with CoronovirusData

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

Loading and Parsing data with CoronovirusData

1
NNaveenrajaYalagandula
Last edited Feb 28, 2022
Created on Feb 27, 2022

This example demonstrates how to load and parse a CSV file containing coronavirus data using D3.js within a React framework. The page displays a static SVG illustration of a cartoonish face alongside a message container that summarizes the dataset. The code fetches the CSV from a GitHub gist via `d3.csv`, then uses `d3.csvFormat` to calculate the file size in kilobytes, and reports the row and column counts. The rendered output is styled with custom CSS, including a colored header and a formatted `<pre>` element for the data summary.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed