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)

0b51913f026f490aab05ab147c80c222

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Mmisstong
Last edited Sep 17, 2022
Created on Sep 17, 2022

This example demonstrates how to load and parse CSV data, displaying the file size, row count, and column count of the CSS Named Colors dataset. The visualization uses the d3.csv method from D3 v5 to fetch the remote CSV file and then formats the results into a text message shown in a large pre element. The code also includes commented-out alternatives using the Fetch API with async/await and a nested promise structure, illustrating different approaches to handling asynchronous data loading.

AI-generated description