Skip to main content
100%

Loading and Parsing CSV Data

✓ Published1🌍 Public
Fforcox43
Last edited Sep 1, 2020
Created on Sep 1, 2020

This example demonstrates how to load and parse CSV data in D3.js v6, showing the size, row count, and column count of a CSS Named Colors dataset. It uses `d3.csv` to fetch the remote CSV file and `d3.csvFormat` to compute the data size in kilobytes. The code also includes commented alternatives using `fetch` with `async`/`await` and `d3.csvParse`, illustrating different approaches to asynchronous data loading in D3.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.

MIT Licensed

Similar vizzes