Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data With React D3

Public visualization

Fork of Loading Data With React D3

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed