Skip to main content
Public

Share visualization

Loading preview…

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

Loading and Parsing CSV data

0
RRedSorrel
Last edited Sep 15, 2021
Created on Sep 15, 2021
Forked from HTML Starter

This example shows how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count in a large text element. It uses `d3.csv` to fetch and parse the data asynchronously, then formats the results with `d3.csvFormat` and `data.length`/`data.columns.length`. The data source is a GitHub-hosted CSV of CSS named colors. A commented-out alternative demonstrates manual fetching with `fetch` and `d3.csvParse`. The visualization is minimal, focusing on confirming data loading success through summary metrics.

AI-generated description

Following along with the data visualization course at this time

Comments

Sign in to join the discussion.

MIT Licensed