Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates loading a CSV file and parsing it into a tabular data structure, displaying summary statistics about the dataset. It fetches a CSV of CSS named colors from a GitHub gist, then uses `d3.csvParse` to convert the raw text into an array of objects. The code highlights the use of the Fetch API with `async` and `await` to retrieve the text, and shows the resulting file size in kilobytes, row count, and column count in large, readable text.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed