Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0๐ŸŒ Public
CCatalina Vajiac
Last edited Feb 24, 2022
Created on Feb 24, 2022

This example demonstrates how to load and parse CSV data from a remote source using D3.js. It displays the file size, row count, and column count of the CSS Named Colors dataset in a large text format. The code uses `d3.csv` to fetch and parse the data asynchronously, then accesses the resulting parsed array and its `.columns` property. An alternative approach using `fetch`, `async`/`await`, and `d3.csvParse` is provided in comments, along with a deprecated callback-based "pyramid of doom" pattern.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed