Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
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 descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed