loading data with react d3
✓ Published1🌍 Public
This example demonstrates how to combine React state management with D3 data-loading utilities to display a brief summary of a CSV dataset. The app fetches a CSS named colors dataset from a GitHub gist and shows a message with the formatted data size in kilobytes, row count, and column count. It uses React’s `useState` and `useEffect` hooks to asynchronously load and store the data via `d3.csv`, while `d3.csvFormat` calculates the rendered size. The page initially shows a “Loading.....” placeholder until the fetch completes, rendering the result as plain text in a `<pre>` element.
AI-generated descriptionA program that loads in some data using D3 utillities, and uses React state to keep track of data.
MIT Licensed