Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Fork of Loading Data with React & D3

0 stars0🌍 Public
SSabbir
Last edited Jan 4, 2022
Created on Jan 4, 2022

This example displays summary statistics for a dataset of CSS named colors, showing the file size in kilobytes, row count, and column count as large text. It loads the data from a GitHub gist using `d3.csv`, stores it in React state with the `useState` and `useEffect` hooks, and renders the result via ReactDOM. The implementation combines D3's `csvFormat` utility for calculating data size with React's component lifecycle for managing asynchronous data loading.

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.

Comments

Sign in to join the discussion.

MIT Licensed