Skip to main content
100%

Fork of Loading and Parsing CSV Data

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

Similar vizzes