Skip to main content
100%

Load Data with D3 and Show State with React (FrontEnd)

✓ Published3🌍 Public
AAndres de la Garza
Last edited Mar 4, 2021
Created on Feb 28, 2021

This D3 and React example loads a Mexico Waste CSV from a GitHub gist and displays a text summary of the dataset. The app uses React’s `useState` and `useEffect` hooks to fetch the data asynchronously with `d3.csv`, then a helper function formats the file size in kilobytes, row count, and column count. The visualization shows the loaded information as plain text in a React-rendered `<pre>` element, demonstrating how D3 utilities can integrate with React state management for front-end data processing.

AI-generated description

A program that loads Mexico Waste Data and uses D3 utilities and React State to keep track of said data

MIT Licensed

Similar vizzes