Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

07cba948fc03431fb1692ff803440fa5

Loading and Parsing CSV Data

0 stars0🌍 Public
RRobFlob
Last edited Jul 7, 2021
Created on Jul 7, 2021

This example demonstrates loading and parsing CSV data by fetching the CSS Named Colors dataset from a GitHub gist. It uses the Fetch API with async/await to retrieve the raw text, then parses it with `d3.csvParse` from D3 v5. The visualization displays three key statistics in a large `<pre>` element: the row count, column count, and file size in kilobytes. It provides a simple demonstration of asynchronous data loading and CSV parsing in a React-less HTML environment.

AI-generated description