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)

9275f685085b48b9b0a3b513014ca93a

Loading and Parsing CSV Data

0 stars0🌍 Public
KKazushige Okuma
Last edited Oct 19, 2021
Created on Oct 18, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v7, reporting the file size, row count, and column count for a dataset of CSS named colors. It uses `d3.csv` to fetch and parse the remote CSV file, then displays the summary statistics in a large `<pre>` element by updating its text content. The data originates from a GitHub gist containing named color values, and the code also includes a commented-out alternative approach using the Fetch API with `async`/`await` and `d3.csvParse`.

AI-generated description

Loading and parsing some CSV data