Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
AArlind Pestisha
Last edited Sep 19, 2022
Created on Sep 19, 2022

This example demonstrates loading and parsing CSV data from a remote URL, displaying summary statistics about the dataset. It fetches the CSS Named Colors CSV file and outputs the file size in kilobytes, the number of rows, and the number of columns using `d3.csv` and `d3.csvFormat`. The code also includes commented-out alternatives using the `fetch` API with `async`/`await` and `d3.csvParse`, as well as a nested promise approach. The result is rendered as large text inside an HTML `<pre>` element.

AI-generated description
MIT Licensed

Similar vizzes