Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
Ssinghjy
Last edited Mar 7, 2021
Created on Mar 6, 2021
Forked from Mouth Follower

This example shows how React state and D3 utilities can work together to load and display CSV data. The page fetches a CSS Named Colors dataset from a GitHub gist and uses the d3 `csv` function to parse it, storing the result in React state via a `useEffect` hook. The visualization output is a simple SVG-based text summary rendered inside a `<pre>` element, displaying the total file size in kilobytes, the number of rows, and the number of columns. The code relies on React 16.9.0, ReactDOM, and D3 v6.5.0, with all rendering handled through SVG.

AI-generated description

A program that loads in Data using d3 utilities and react state to keep track of our data

MIT Licensed

Similar vizzes