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)

7a4e2eaaf3eb47148856f32cef8dc425

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
SSlodgar
Last edited Nov 30, 2022
Created on Nov 30, 2022

This example demonstrates loading and parsing a CSV file containing CSS Named Colors from a remote GitHub gist. It uses the Fetch API to retrieve the text, then D3 v7’s `d3.csvParse` method to convert the raw CSV into an array of objects. The parsed data is logged to the browser console via `console.log`, and the interface simply renders a large empty `<pre>` element. The code runs entirely in an asynchronous function, showcasing how `async`/`await` handles the data-loading pipeline.

AI-generated description