Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Nnayak-sarvesh12
Last edited Nov 16, 2021
Created on Nov 16, 2021

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 description
MIT Licensed

Similar vizzes