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)

ba4e04840f88463a93700d0b7bb2be36

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
CCecilia831
Last edited Jun 4, 2021
Created on Jun 4, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count in a large text element. It uses `d3.csv()` with promises to fetch the CSS Named Colors dataset, then calculates the formatted CSV length in kilobytes using `d3.csvFormat`. The visualization also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse`, as well as a nested promise example, illustrating different approaches to asynchronous data loading in D3 v5.

AI-generated description