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)

c53fef77d0eb42b9a09d9a77aafeff93

Loading and Parsing CSV Data

0 stars0🌍 Public
BBenoit Mouly
Last edited Jul 28, 2022
Created on Jul 27, 2022
Forked from HTML Starter

This example demonstrates the basic workflow of loading and parsing CSV data with D3.js. It fetches a remote CSV file containing named CSS colors and displays the file size in kilobytes, the number of rows, and the number of columns as text on the page. The code uses `d3.csv` to load the data and `d3.csvFormat` to measure its size, while `data.length` and `data.columns.length` report the dataset structure. The concise output highlights the parsed data’s dimensions without visualizing the actual color values.

AI-generated description

A program that loads and parses some CSV data