Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

cfbcc9da8ffa4285b318f5355513ba9c

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