Skip to main content
100%

Loading data with d3

✓ Published1🌍 Public
SSai Phaltankar
Last edited May 26, 2022
Created on May 26, 2022
Forked from Mouse Follower

This example demonstrates loading a CSV dataset of named CSS colors and displaying its metadata as plain text. The React component uses the `useState` and `useEffect` hooks together with D3’s `csv` function to fetch data asynchronously from a GitHub gist URL, then renders a summary message computed by the `message` utility using `d3.csvFormat` and the data’s `length` and `columns` properties. While the data is loading, the interface shows the word “Loading,” and after success, it reports file size, row count, and column count.

AI-generated description

A program that loads some data using D3 utilities, and uses React state to keep track of the data

MIT Licensed

Similar vizzes