Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example displays the number of rows, columns, and file size (in kB) of a CSV dataset containing CSS named colors, presenting the results as large text on a blank page. It loads the data from a GitHub-hosted CSV file using the `d3.csv` method, then formats the summary using `d3.csvFormat` and the `Math.round` function. The code also includes commented-out alternatives using the `fetch` API with both promises and `async`/`await` syntax, as well as a nested “pyramid of doom” pattern, to demonstrate different approaches to asynchronous data loading.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed