Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
CCristina Macaraig
Last edited Jul 16, 2021
Created on Jul 16, 2021

This example demonstrates loading and parsing CSS Named Colors CSV data, displaying a summary of the dataset's size, row count, and column count in a large text element. It uses D3 v5’s `d3.csv` method to fetch and parse the remote CSV file from a GitHub gist, then formats the output with `d3.csvFormat`. The code also includes commented-out alternatives using the Fetch API with `async`/`await` and `d3.csvParse`, as well as a "pyramid of doom" pattern, highlighting different approaches to asynchronous data loading.

AI-generated description
MIT Licensed

Similar vizzes