Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Load Data and Store State

Public visualization

Load Data and Store State

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed