🌍 Public
Fork of Loading and Parsing CSV Data
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 descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed
Comments
Sign in to join the discussion.