Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates the size and structure of a CSS named colors dataset by displaying its byte count, row count, and column count in large text. It loads the CSV file from a GitHub gist using the `d3.csv` method, which parses the data and exposes its columns. The visualization then reports that the data is about 7 kB, containing 148 rows and 4 columns, rendered inside an HTML `<pre>` element. The code also includes commented-out alternatives using `fetch` and `d3.csvParse`, highlighting different approaches to asynchronous data loading.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed