Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

94f05542ea8a43739727f457b962a695

Loading and Parsing CSV Data

0 stars0🌍 Public
MMoise
Last edited Aug 24, 2023
Created on Aug 24, 2023
Forked from HTML Starter

This example demonstrates how to load and parse a remote CSV file using D3 v7. It fetches CSS named colors data from a GitHub gist and displays the file size, row count, and column count in a large <pre> element. The code uses `d3.csv()` to retrieve and parse the data, then computes the formatted size with `d3.csvFormat()`, while also showing commented alternatives using `fetch()`, async/await, and `d3.csvParse()` for manual parsing.

AI-generated description

A program that loads and parses some CSV data.