Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
LLawrence Liu
Last edited Apr 9, 2022
Created on Apr 9, 2022

This example demonstrates how to fetch and parse CSV data from a remote URL, specifically a dataset of CSS named colors. The code uses the Fetch API within an asynchronous function to retrieve the text content from the gist URL, then logs the raw CSV text to the browser console. Built with D3 v5 and the React framework, the visualization itself is not rendered; instead, it focuses on the data-loading step. The program explicitly handles the asynchronous fetch using a Promise chain with the `.then()` method after converting the response to text.

AI-generated description
MIT Licensed

Similar vizzes