Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsin CSV Data

Public visualization

Viewing a saved revision (read-only)

e914aa92f02f4143aa5f50767daedfb7

Loading and Parsin CSV Data

0 stars0🌍 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