Skip to main content
100%

Parse CSV data with D3

✓ Published0🌍 Public
PPramod Jacob Sam
Last edited Nov 21, 2021
Created on Nov 21, 2021

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 description
MIT Licensed

Similar vizzes