Skip to main content
100%

Fork of Loading Data With React D3

✓ Published0🌍 Public
DDusty
Last edited Aug 6, 2021
Created on Aug 6, 2021

This example demonstrates how to load and display CSS named colors data using React and D3. It fetches a CSV file with the D3 `csv` utility and stores the result in React state via the `useState` and `useEffect` hooks. While the data is loading, a “Loading...” message appears in a `<pre>` element, but the code does not render the fetched data itself. The project uses React 17 and D3 v7, with a separate `message.js` file that calculates file size, row count, and column count from the data.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes