Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
HHowardHan99
Last edited Oct 16, 2021
Created on Oct 16, 2021

This example demonstrates loading and parsing CSV data from a remote source, then displaying summary statistics about the dataset. It uses D3 v5’s `d3.csv` method to fetch and parse the CSS Named Colors dataset from a GitHub gist, and computes the file size in kilobytes, the number of rows, and the number of columns. The resulting message is rendered into a `pre` element using vanilla DOM manipulation. The code also includes commented alternatives using `fetch` with `async/await` and `d3.csvParse`.

AI-generated description
MIT Licensed

Similar vizzes