Skip to main content
100%

Loading Data with React & D3r

✓ Published2🌍 Public
KKolezhannochka
Last edited Jan 4, 2022
Created on Jan 4, 2022
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset within a React application using D3.js. It fetches the CSS named colors dataset from a GitHub gist, parses it with `d3.csv()`, and displays the file size in kilobytes, the number of rows, and the number of columns. The implementation uses React’s `useState` and `useEffect` hooks to manage asynchronous data loading, and `d3.csvFormat()` to compute the data’s string length. The result is rendered as plain text inside a `<pre>` element.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes