Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React and D3

Public visualization

Loading Data with React and D3

0 stars0🌍 Public
Ssono-mama
Last edited Apr 16, 2021
Created on Apr 14, 2021

This example demonstrates how to load and display CSV data in a React application using D3. The interface shows a text summary of the dataset, including the number of rows, columns, and file size in kilobytes. The code uses React’s `useState` and `useEffect` hooks to fetch data asynchronously via D3’s `csv` function, then formats it with `csvFormat`. The data source is a GitHub gist containing CSS named colors, rendered as SVG-like text in a `<pre>` element.

AI-generated description

Mouse Follower

Comments

Sign in to join the discussion.

MIT Licensed