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)

0810cb60deb949ee8c4ba6d2b5ca12c2

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