Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed