Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates loading and parsing CSV data by fetching a dataset of CSS named colors and displaying basic statistics about it. The code uses the Fetch API with async/await to retrieve the data, then parses it with d3.csv, which returns a promise. It computes the file size in kilobytes, row count, and column count from the parsed data, displaying these values in a large pre-formatted text element. The visualization also includes commented-out code showing an alternative approach using d3.csvParse on raw text.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed