Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
RRandyElkins
Last edited Aug 9, 2021
Created on Aug 9, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3.js, displaying a summary of the fetched dataset’s size, row count, and column count in large text. The code calls `d3.csv` on a remote URL containing CSS named colors, then formats the result with `d3.csvFormat` to calculate the data size in kilobytes. It also accesses the parsed array’s `length` and `columns` properties to report row and column totals. A commented alternative shows using the Fetch API with `async/await` and `d3.csvParse` for the same task.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes