Skip to main content
100%

Aditya - Loading Data with React & D3

✓ Published0🌍 Public
AAditya Bhattacharya
Last edited Mar 30, 2022
Created on Mar 30, 2022

This example demonstrates how to load and summarize CSS named color data from a GitHub gist. It displays a text readout showing the dataset’s size in kilobytes, row count, and column count. The code uses React hooks (`useState`, `useEffect`) to manage loading state, while D3’s `csv` method fetches and parses the data, and `d3.csvFormat` calculates the data size. The interface shows “Loading…” until the promise resolves.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes