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 stars1🌍 Public
PpyDimi
Last edited Mar 3, 2021
Created on Mar 2, 2021

This visualization demonstrates a minimal React and D3 integration for loading and summarizing a CSS Named Colors dataset. The app uses React’s `useState` and `useEffect` hooks to manage asynchronous data fetching, while `d3.csv` retrieves the CSV file from a GitHub gist. Once loaded, the `message` function computes and displays the dataset’s file size, row count, and column count using `d3.csvFormat` and string concatenation, rendering the result inside a `<pre>` element. Before data arrives, the UI shows a simple “loading...” placeholder.

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