Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published1🌍 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
MIT Licensed

Similar vizzes