Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
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 descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed