🌍 Public
Fork of Loading Data with React & D3
This example demonstrates how to load CSV data from a remote URL using D3’s `csv` utility within a React component. The React `useState` hook stores the fetched data, while `useEffect` triggers the asynchronous loading. The app displays a text summary of the dataset, including its size in kilobytes, row count, and column count, calculated with `d3.csvFormat`. The visible output is a simple `<pre>` element that shows either "Loading..." or the computed statistics, with styling from the linked CSS.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.