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
CChristian-SWS
Last edited Aug 23, 2023
Created on Aug 22, 2023
Forked from HTML Starter

This example demonstrates loading and parsing CSV data from a remote URL using D3.js, displaying the resulting table's row count, column count, and file size in kilobytes. The page calls `d3.csv` to fetch and parse the data asynchronously, then uses `data.columns.length` and `d3.csvFormat` to calculate the metrics, rendering the output inside a large `<pre>` element. The included commented code shows alternative approaches using `fetch`, `async`/`await`, and `d3.csvParse`.

AI-generated description

Load and parse csv data

Comments

Sign in to join the discussion.

MIT Licensed