Parse CSV data with D3
✓ Published0🌍 Public
This example demonstrates how to parse CSV data using D3, displaying the file size, row count, and column count of a CSS Named Colors dataset. It uses the `fetch` API with `async`/`await` to retrieve the text, then applies `d3.csvParse` to structure it, while also showing D3’s built-in `d3.csv` promise method. The results appear in a large HTML `<pre>` element. The source data is loaded from a GitHub Gist containing color names and their hexadecimal values.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed