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)

ce7ded7ec857446c97e1ab6fe9292f21

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
GGordon Yang
Last edited Apr 1, 2021
Created on Apr 1, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count of the CSS Named Colors dataset. The code uses D3 v5’s `d3.csv` method to fetch and parse the data asynchronously, then formats the summary using `d3.csvFormat` and `data.columns`. A commented-out alternative shows parsing via the Fetch API with `async`/`await` and `d3.csvParse`. The results are rendered as large text inside an HTML `<pre>` element.

AI-generated description