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)

4878fbceb89a486d869c390131cab19f

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
AAkshay
Last edited Mar 19, 2022
Created on Mar 19, 2022

This example displays basic statistics about the CSS Named Colors CSV dataset, including file size in kilobytes, row count, and column count, rendered as large text in a preformatted HTML element. The code loads the remote CSV using D3 v5’s `d3.csv` method, which returns a promise, then computes the values with `d3.csvFormat` and `data.columns`. Alternative approaches using `fetch`, `async`/`await`, and `d3.csvParse` are commented out, highlighting different asynchronous patterns for data loading.

AI-generated description