Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Viewing a saved revision (read-only)

a1243552c8874a9192e022a5a5f04b26

Fork of Loading Data with React & D3

0 stars0🌍 Public
Aalfredwang0707
Last edited May 6, 2021
Created on May 6, 2021

This example demonstrates how to load and summarize a dataset of CSS named colors using React and D3. It fetches a CSV file from a GitHub gist via the `d3.csv` utility, stores the parsed data in React state with the `useState` and `useEffect` hooks, and renders a text summary that displays the file size in kilobytes, row count, and column count. The visualization uses React 16.9 and D3 v5, with the `d3.csvFormat` API calculating the data's byte length.

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.