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)

7c11f5d0f22f47d49cf4442752fb029e

Loading and Parsing CSV Data

0 stars0🌍 Public
KKirsten Lund
Last edited Feb 4, 2021
Created on Feb 4, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v6, displaying summary statistics about the dataset in a large text format. It fetches a remote CSV file containing named CSS colors from a GitHub gist using `d3.csv()`, then calculates and shows the file size in kilobytes, the number of data rows, and the column count. The code also includes commented-out alternatives using the Fetch API with `async/await` and `d3.csvParse()`, highlighting different parsing approaches within the same visualization.

AI-generated description

Learning how to load an parse csv data!!!