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)

4e7b253f78074a1caf547118f9d69577

Loading and Parsing CSV Data

0 stars1🌍 Public
BbeauMarko
Last edited Oct 13, 2021
Created on Oct 9, 2021
Forked from HTML Starter

This example demonstrates the basic workflow of loading and parsing CSV data with D3.js v7. It fetches a remote CSV file containing CSS named colors from a GitHub gist and displays key statistics about the dataset, including its size in kilobytes, row count, and column count. The code uses the Fetch API to retrieve the raw text, then applies `d3.csvParse` to convert it into an array of objects, while also showing `d3.csv` for direct asynchronous loading. The parsed results are logged to the browser console and summarized in a large text display.

AI-generated description

A program that loads and parses some CSV data.