Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
MMarta
Last edited Feb 5, 2023
Created on Feb 5, 2023

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

Similar vizzes