Skip to main content
100%

Loading and parsing csv data

✓ Published0🌍 Public
SSahil Chutani
Last edited Jan 20, 2025
Created on Jan 13, 2025
Forked from HTML Starter

This example demonstrates how to load and inspect a CSV file using D3.js. It fetches a dataset of CSS named colors from a GitHub gist and displays three key statistics: the file size in kilobytes, the number of rows, and the number of columns. The code uses `d3.csv()` to parse the remote data, then applies `d3.csvFormat()` to measure its string length and accesses the parsed array's `length` and `columns` properties. A commented alternative shows parsing fetched text with `d3.csvParse()`.

AI-generated description

A program that loads and parses csv data

MIT Licensed

Similar vizzes