Skip to main content
100%

Loading Data with React and D3

✓ Published0🌍 Public
DDaMei1993
Last edited Aug 10, 2021
Created on Jul 27, 2021

This example demonstrates how to load and display CSV data using React state and D3 utilities. The application fetches a dataset of CSS named colors from a GitHub URL, tracking the loaded data with React’s `useState` and `useEffect` hooks. It renders a text-based summary showing the file size in kilobytes, row count, and column count, formatted via `d3.csvFormat` and `d3.csv`. The visualization uses a React component with SVG rendering, powered by D3 v7 and React 17.

AI-generated description

A program that loads in some data using d3 utilities and uses React state to keep track of the data.

MIT Licensed

Similar vizzes