🌍 Public
Fork of Loading and Parsing CSV Data
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 descriptionA program that loads and parses some CSV data.
MIT Licensed
Comments
Sign in to join the discussion.