Skip to main content
Public

Share visualization

Loading preview…

Loading & Parsing CSV Data

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 & Parsing CSV Data

0
AAnthony Zornig
Last edited Oct 2, 2021
Created on Oct 2, 2021
Forked from HTML Starter

This example demonstrates the process of loading and parsing CSV data by displaying key statistics about the dataset: its size in kilobytes, the number of rows, and the number of columns. It uses D3 v5’s `d3.csv` method to fetch and parse the data from a GitHub Gist URL, then formats the statistics into a readable message using `d3.csvFormat`. The result is rendered as large text inside a `<pre>` element styled with CSS. The code also includes an alternative commented-out approach using `fetchText` and `d3.csvParse`.

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