Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Kkurasahakai
Last edited May 21, 2023
Created on May 21, 2023

This example demonstrates how to load and parse CSV data using D3 v5 and the Fetch API. It fetches the CSS Named Colors dataset from a GitHub gist and displays the raw text in the browser console. The code includes multiple commented-out approaches, showing alternatives like `d3.csv` for direct parsing and the newer async/await syntax with `fetch` and `response.text()`. It highlights the progression from callback-based "pyramid of doom" patterns to modern promise chains.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed