Skip to main content
100%

Loading data with React and D3

✓ Published0🌍 Public
Mmatheus-sa-ferreira
Last edited Mar 18, 2021
Created on Mar 18, 2021
Forked from Mouse follower

This example demonstrates how to load external data with D3 utilities and manage it with React state. The application fetches a CSV file containing CSS named colors from a GitHub gist URL using `d3.csv`, and the data is stored in React’s `useState` hook. The rendering uses SVG, with static placeholder circles drawn in the HTML for reference. The code includes commented-out logic for displaying data statistics, such as file size, row count, and column count, but the visible implementation focuses on the data-loading pattern within a React component. The project uses React 17, D3 v6, and renders to the DOM via `ReactDOM.render`.

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