Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Nnkarinti
Last edited Jun 28, 2023
Created on Jun 28, 2023

This example demonstrates the basic workflow of loading and parsing CSV data with D3.js. It displays statistics about the dataset—file size in kilobytes, column count, and row count—in a large pre-formatted text block. The program fetches a CSV file containing named CSS colors from a GitHub gist using `d3.csv()`, then formats the parsed data back into a string with `d3.csvFormat()` to measure its size. The code also includes an alternative commented-out approach using `fetch()` and `d3.csvParse()` for comparison.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes