Skip to main content
100%

Loading data with react D3

✓ Published0🌍 Public
JJulianLeira
Last edited Oct 20, 2021
Created on Oct 20, 2021

This example demonstrates how to load external data using D3 utilities and manage it with React state. The application fetches a CSV file listing CSS named colors, then displays the data size, row count, and column count as text. The code uses the `csv` function from D3 v5 to load the data, `useState` and `useEffect` hooks from React 16.9 to store and trigger the data fetch, and renders the calculated statistics as an SVG-based `<pre>` element.

AI-generated description

A program that loads in some data usaing D3 utilities, and uses REact state to keep track of the data

MIT Licensed

Similar vizzes