Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
TTOKIHISA
Last edited Jan 8, 2022
Created on Jan 8, 2022

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 description
MIT Licensed

Similar vizzes