Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Laoding Data with React & D3

Public visualization

Fork of Laoding Data with React & D3

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

Comments

Sign in to join the discussion.

MIT Licensed