Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

037b16a8965246aa8ace062ec3663365

Fork of Loading and Parsing CSV Data

0 stars1🌍 Public
Sseanmdalrymple@protonmail.com
Last edited Feb 9, 2025
Created on Feb 9, 2025

This example demonstrates how to load a CSV file containing CSS named colors and display basic information about the dataset—its size in kilobytes, row count, and column count—as large text on the page. It uses the Fetch API with async/await to retrieve the remote CSV, then parses it with the `d3.csvParse` method. The code also includes alternative commented-out approaches using the `d3.csv` convenience method and a nested promise chain, highlighting different loading strategies. The text is rendered directly into a `<pre>` element.

AI-generated description