Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Bblueyjuice
Last edited Nov 10, 2021
Created on Nov 10, 2021

This example demonstrates how to load and parse CSV data using D3 and React. It fetches CSS Named Colors data from a GitHub gist and displays the file size in kilobytes, row count, and column count in a large text format. The code uses `d3.csv` with a Promise-based `.then` method, while commented alternatives show `fetch` with `async/await` and `d3.csvParse`. The React component renders the result into a `<pre>` element, with D3 version 5 and React 16 loaded from CDNs.

AI-generated description
MIT Licensed

Similar vizzes