Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
JJoakim Warholm
Last edited Jun 16, 2021
Created on Jun 16, 2021

This example demonstrates loading and parsing CSV data by displaying key statistics about the CSS Named Colors dataset, including file size, row count, and column count. It uses d3.csv to fetch the remote CSV file and returns a promise that resolves with the parsed data. The code also includes commented-out alternatives using fetch with async/await and d3.csvParse, as well as a nested promise “pyramid of doom” pattern, to illustrate different approaches to asynchronous data loading in D3 v5.

AI-generated description
MIT Licensed

Similar vizzes