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
SShaneBowen1
Last edited Mar 16, 2021
Created on Mar 16, 2021

This example demonstrates how to load and summarize a CSV dataset in a React application using d3. The app fetches CSS named colors data from a GitHub gist and displays its file size, row count, and column count in a large text element. React’s `useEffect` hook triggers the asynchronous `d3.csv` request, while `d3.csvFormat` calculates the data’s byte length. The visualization is rendered as SVG-free text via the `pre` element.

AI-generated description

Loading data with React and d3

Comments

Sign in to join the discussion.

MIT Licensed