Skip to main content
100%

Fork of Laoding Data with React & D3

✓ Published0🌍 Public
Bbreadcircle
Last edited Mar 25, 2022
Created on Mar 25, 2022

This example demonstrates how to load and display a dataset using React and D3. The page shows a summary of CSS named colors from a CSV file, displaying the data size in kilobytes, the number of rows, and the number of columns. The code uses React’s `useState` and `useCallback` to manage the data, and D3’s `csv` function to fetch and parse the external CSV resource. The rendering is done with a simple SVG-free `<pre>` element, updating via React state once the data arrives.

AI-generated description

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

MIT Licensed

Similar vizzes