Skip to main content
100%

Loading data with React & D3

✓ Published1🌍 Public
RRuanzhenglin
Last edited Apr 14, 2021
Created on Apr 14, 2021
Forked from React callback

This example demonstrates how to load and display CSV data in a React application using D3. It fetches a dataset of CSS named colors from a GitHub gist via `d3.csv`, then displays summary statistics—file size in kilobytes, row count, and column count—as text in the browser. The React component uses the `useState` hook to manage the asynchronous data loading state, showing “loading” until the data arrives. The visualization itself is minimal, presenting the data’s metadata rather than a graphical chart.

AI-generated description

Half way towards a smiley face

MIT Licensed

Similar vizzes