Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
MMorgan Worrell
Last edited Aug 3, 2023
Created on Aug 3, 2023

This example demonstrates how to load and parse CSV data using modern JavaScript asynchronous patterns. It fetches a CSS Named Colors dataset from a GitHub gist. The program defines an async function that uses the Fetch API to retrieve the text, then chains a promise to log the contents to the browser console. No visualization or rendering occurs; the focus is purely on data ingestion. It relies on D3.js v5 for the d3.min.js library but primarily showcases native ES2017 async/await syntax with fetch.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed