Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
UUlbert Alain Odle
Last edited Oct 10, 2021
Created on Oct 10, 2021

This example demonstrates how to load and parse CSV data using D3 v5’s `d3.csv` method, fetching a dataset of CSS named colors from a GitHub gist. The code calculates and displays the file size in kilobytes, the number of rows, and the number of columns in a large HTML `<pre>` element. It also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse` to show different parsing approaches. The visualization is purely textual, with no graphical rendering, focusing on data-loading mechanics.

AI-generated description
MIT Licensed

Similar vizzes