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)

52c0802153294f788fe7778c28804ede

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
IIsaac Yuen
Last edited Apr 28, 2022
Created on Apr 28, 2022

This example demonstrates how to load and parse CSV data, displaying a summary of the dataset’s size in kilobytes, row count, and column count. It fetches CSS named colors from a GitHub gist and processes the data using `d3.csv` with promises in D3 v5. The code includes commented alternatives using `fetch`, `async`/`await`, and `d3.csvParse`, illustrating different asynchronous approaches. The result updates a plain text element, showing the parsed data’s dimensions without any chart rendering.

AI-generated description