Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 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.

MIT Licensed

Similar vizzes