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
KKarenNg
Last edited Sep 5, 2019
Created on Sep 5, 2019

This example demonstrates how to load and parse CSV data using D3.js version 5. It fetches a wildlife trade dataset from a GitHub gist and displays the file size in kilobytes, the number of rows, and the number of columns in a large text block. The code uses d3.csv to fetch and parse the data, then accesses the resulting array and its columns property. An alternative approach using the Fetch API with async/await and d3.csvParse is also included as commented-out code.

AI-generated description

A program that loads and parses some CSV data.

Comments

Sign in to join the discussion.

MIT Licensed