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)

c4c63e42fdef464ca64776ce8b464034

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Aalfredwang0707
Last edited May 6, 2021
Created on May 6, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size in kilobytes, row count, and column count as plain text. It uses the `d3.csv` function from D3 v5 to fetch and parse the CSS Named Colors dataset. The code also includes commented-out alternatives using `fetch`, async/await, and `d3.csvParse`, showing different approaches to handling asynchronous data loading. The visualization itself is minimal, prioritizing the data-loading process over graphical representation.

AI-generated description