Skip to main content
100%

Fork of Loading and Parsing CSV Data

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

Similar vizzes