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
RRoshan Kumar
Last edited Oct 25, 2021
Created on Oct 25, 2021

This example demonstrates how to load data with React and D3, displaying a summary of the CSS named colors dataset fetched from a GitHub gist. It uses the `csv` function from D3 to fetch and parse the data, while React’s `useState` and `useEffect` hooks manage the asynchronous loading state. Once loaded, the `message` utility formats the data’s size in kilobytes, row count, and column count for display in a large `<pre>` element. The visualization shows no chart, only textual metadata about the dataset.

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