Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
SSteven Pearce
Last edited Dec 15, 2021
Created on Dec 15, 2021

This example demonstrates the amount of CSV data loaded from a remote URL, displaying the file size, row count, and column count, then rendering these metrics as plain text within an HTML `<pre>` element. It uses D3 v5’s `d3.csv` promise-based API to fetch and parse the CSS Named Colors dataset. The visualization also includes commented-out alternatives using the Fetch API with `async`/`await` and `d3.csvParse`, alongside a nested promise “pyramid of doom” example. The output is minimalist, focusing solely on the parsed data’s descriptive statistics.

AI-generated description
MIT Licensed

Similar vizzes