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

This example demonstrates loading and parsing CSV data by displaying key statistics about the Global Obesity Rates 2014 dataset. It uses d3.csv to fetch the remote CSV file, then reports the file size in kilobytes, the number of data rows, and the number of columns in a large pre-formatted text element. The code also includes commented alternatives using fetch with async/await and d3.csvParse, as well as a nested promise chain, highlighting different approaches to asynchronous data handling in D3 v5.

AI-generated description

A program that loads and parses some CSV data. Global Obesity Rates 2014

Comments

Sign in to join the discussion.

MIT Licensed