Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

f5549c8b64c047b89d56c74a999aaf44

Fork of Loading and Parsing CSV Data

0 stars0🌍 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