Skip to main content
Public

Share visualization

Loading preview…

Parsing CSV Data with D3

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

Parsing CSV Data with D3

0
MMareno Demmers
Last edited Oct 10, 2024
Created on Oct 9, 2024
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3’s `d3.csv` method, displaying the file size, row count, and column count as large text in the browser. The code fetches a remote CSV file from a GitHub gist, parses it with `d3.csv`, and uses `d3.csvFormat` to measure the formatted data’s size in kilobytes. The results are rendered into a `<pre>` element via `document.getElementById`, with the visualization relying entirely on D3’s data-handling APIs rather than any drawing or charting functions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed