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
UUtsav Khatu
Last edited Mar 10, 2021
Created on Mar 10, 2021

This example demonstrates the size and structure of a dataset containing CSS named colors, displaying the file size in kilobytes, row count, and column count. It loads the data from a remote CSV file using D3’s `csv` utility, while React’s `useState` and `useEffect` hooks manage the asynchronous fetch and component state. The rendered output is a simple text summary generated by a custom `message` function that uses `d3.csvFormat` to calculate the byte length. The visualization is minimal, focusing on data loading and state management rather than graphical representation.

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