Skip to main content
100%

Loading and Parsin CSV Data

✓ Published0🌍 Public
PPascal Mausch
Last edited May 23, 2022
Created on May 23, 2022

This example demonstrates the process of loading and parsing CSV data, displaying the dataset’s size in kilobytes, row count, and column count in a large, readable format. It uses D3 v7’s `d3.csv` and `d3.csvFormat` to fetch and measure a CSV file of CSS named colors from a GitHub repository. The code also includes commented alternatives using the Fetch API, `async`/`await`, and `d3.csvParse`, as well as a nested promise “pyramid of doom” pattern, contrasting different async data-loading techniques.

AI-generated description
MIT Licensed

Similar vizzes