Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Sshapak26
Last edited Nov 7, 2021
Created on Nov 7, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying summary statistics about the dataset. The code fetches a CSV file containing CSS named colors and calculates the file size in kilobytes, the number of rows, and the number of columns. It primarily uses `d3.csv` with a promise chain, while commented-out alternatives show the same task using `fetch`, `async`/`await`, and `d3.csvParse`. The results are rendered as large text inside a `<pre>` element, with the D3 library loaded via a CDN.

AI-generated description
MIT Licensed

Similar vizzes