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)

42d6e0d79dd346cd8c73a4cc07bfe132

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
SShantanu
Last edited May 25, 2021
Created on May 14, 2021

This example demonstrates the parsing of CSS Named Colors CSV data, presenting the file size, number of rows, and columns in a large text display. It uses the `d3.csv` method to fetch and parse the remote CSV file from a GitHub gist, then computes and displays statistics using `d3.csvFormat` and the parsed data array’s `length` and `columns` properties. The page also includes commented-out alternative approaches using `fetch`, `async/await`, and `d3.csvParse`, highlighting different ways to handle CSV loading in D3 v5.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.