Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
JJun Suzuki
Last edited Nov 15, 2021
Created on Nov 15, 2021
Forked from Hello HTML

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 summary statistics, including the file size in kilobytes, the number of rows, and the number of columns, in a large preformatted text block. The code uses `d3.csv` to retrieve and parse the data asynchronously, then accesses the resulting array and its `.columns` property. It also includes commented-out alternatives using the Fetch API with `d3.csvParse` and async/await.

AI-generated description

A program that loads and parses CSV Data.

Comments

Sign in to join the discussion.

MIT Licensed