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)

c9ecd5ecdffa484395c3bacc35328236

Fork of Loading and Parsing CSV Data

0 stars1🌍 Public
ZZololen
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count in large text. The code uses D3 v5’s `d3.csv` method with a Promise to fetch the data, then measures it using `d3.csvFormat`. Alternatively, the commented-out code shows the same task using the Fetch API with async/await and `d3.csvParse`. The data source is a GitHub Gist containing CSS named colors.

AI-generated description