Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
PPratik Raja
Last edited Jul 29, 2024
Created on Jul 29, 2024

This example shows summary statistics from a remote CSV file containing CSS named colors, displaying the file size, row count, and column count as large text. It uses D3 v5’s `d3.csv` to fetch and parse the data, then formats the output with `d3.csvFormat`. A commented alternative demonstrates the same task using the Fetch API with `async` and `await`, followed by `d3.csvParse`, and a nested-promise “pyramid of doom” pattern is also included for comparison. The data originates from a GitHub Gist URL.

AI-generated description
MIT Licensed

Similar vizzes