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)

5904ce67cc284cea96fec3cf8538b7d3

Loading and Parsing CSV data

0 stars1🌍 Public
Ccynichole
Last edited Feb 16, 2022
Created on Feb 14, 2022
Forked from Hello HTML

This example demonstrates how to load and parse a CSV file using D3 v7 and display basic statistics about the dataset in a large-text HTML element. It fetches a remote CSV file containing CSS named colors, then uses `d3.csv` to parse the data and reports the number of rows, number of columns, and file size in kilobytes via `d3.csvFormat`. The code also includes a commented-out alternative approach using the Fetch API with `async/await` and `d3.csvParse`.

AI-generated description

A program that loads and parses csv data