Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
JJean David
Last edited Apr 9, 2021
Created on Apr 9, 2021

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 description
MIT Licensed

Similar vizzes