Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 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.

MIT Licensed

Similar vizzes