🌍 Public
Viewing a saved revision (read-only)
3d5db83b48bb47af94f8b584867dd213
Fork of Loading and Parsing CSV Data
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: