🌍 Public
Viewing a saved revision (read-only)
b9899e077c1743df813c4b61402c6507
Loading data with React and d3
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 descriptionLoading data with React and d3