Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Nnncis
Last edited Sep 19, 2023
Created on Sep 12, 2023

This example shows how to load and parse CSV data in a browser, displaying basic statistics about the dataset as plain text. It fetches a CSV file containing CSS named colors from a remote URL, then uses d3.csvParse to convert the raw text into an array of objects. The code calculates and displays the file size in kilobytes, the number of data rows, and the number of columns. It relies on the Fetch API with async/await through a custom fetchText function, and manually triggers parsing via the d3.csvParse method.

AI-generated description
MIT Licensed

Similar vizzes