Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
Mmauryanidhi
Last edited Apr 16, 2022
Created on Apr 16, 2022

This example demonstrates a simple React-based data loading workflow using D3 utilities. It fetches a CSV file containing CSS named colors from a GitHub gist, then displays a concise summary of the dataset: the file size in kilobytes, the number of rows, and the number of columns. The implementation uses React’s `useState` and `useEffect` hooks to manage asynchronous data fetching, while D3’s `d3.csv` handles parsing. The rendered output is plain text generated by a custom `message` function that relies on `d3.csvFormat` to calculate the file size.

AI-generated description

A program that loads in some [data about CSS named colors] (https://gist.githubusercontent.com/mauryanidhi/6441f79580d19ebbbc816af110d124ec/raw/33af14b8788b20367f8f4d6edcd6eeba43cea262/color.csv)using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes