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
Ffixh9879
Last edited Jan 18, 2022
Created on Jan 17, 2022
Forked from Tracking the Mouse

This example demonstrates how React can manage D3-loaded data to display a concise summary of a CSV file. The code fetches a CSS Named Colors dataset using `d3.csv` and calculates its size in kilobytes, row count, and column count, rendering the results as large text. It relies on React’s `useState` and `useEffect` hooks to trigger the asynchronous data load, while `d3.csvFormat` measures the data’s byte size. The visualization is purely textual, with the message built by a separate `message.js` module, and the output is presented inside a `<pre>` element.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed