Skip to main content
Public

Share visualization

Loading preview…

Fork of Loading and 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

Fork of Loading and Parsing CSV Data

0
Hhenry c
Last edited Mar 9, 2022
Created on Mar 9, 2022

This example demonstrates how to load and parse CSV data from a remote URL, then summarizes the dataset’s size in kilobytes, row count, and column count on a large text display. It uses D3 v5’s `d3.csv` method with a Promise-based `.then` callback to fetch the file, while commented-out alternatives show the same task using the Fetch API with async/await and `d3.csvParse`. The data comes from a GitHub gist containing CSS named colors. The page is minimal, relying on a `<pre>` element for output and no interactive charts.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed