Skip to main content
100%

Loading data with D3 and React

✓ Published0🌍 Public
EEricWindler
Last edited Dec 9, 2021
Created on Dec 9, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset within a React application using D3. It fetches CSS named color data from a GitHub gist via D3’s `csv` function, then displays the file size in kilobytes, row count, and column count in a large `<pre>` element. The React `useState` and `useEffect` hooks manage the asynchronous data loading, while a custom `message` function calculates the statistics using `d3.csvFormat` and `data.columns`.

AI-generated description

Program lods data with D3 and React

MIT Licensed

Similar vizzes