Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
SSun Hwy (David) Kim
Last edited Mar 24, 2022
Created on Mar 24, 2022

This example demonstrates loading and parsing CSV data by displaying the size, row count, and column count of the CSS Named Colors dataset in a large HTML `<pre>` element. The code uses the D3.js library (v7) to fetch the CSV from a GitHub Gist via `d3.csv()`, which returns a promise, then summarizes the parsed data using `data.length`, `data.columns.length`, and `d3.csvFormat()` to calculate the file size in kilobytes. The visualization emphasizes the data-loading process over graphical representation, with a simple text output.

AI-generated description
MIT Licensed

Similar vizzes