Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example loads a CSV file of CSS named colors from a GitHub gist and displays basic statistics about the dataset in large text. It shows the file size in kilobytes, the number of rows, and the number of columns. The code uses D3 v5’s `d3.csv` method, which returns a promise, and formats the result with `d3.csvFormat` to calculate the byte count. A commented-out alternative demonstrates fetching the same data with the Fetch API and `d3.csvParse`.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed