Skip to main content
100%

Load Data and Store State

✓ Published0🌍 Public
JJohn H
Last edited Nov 29, 2022
Created on Nov 29, 2022

This example demonstrates a minimal React application that attempts to load a CSV file containing CSS color data from a GitHub gist using D3’s `csv` function, then store the parsed result in component state via `useState`. The current code logs the CSV URL and contains commented-out logic that would display loading status and report the data’s size in kilobytes, row count, and column count. The page uses React 16.9.0 and D3 7.6.1.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes