Skip to main content
100%

d3 Data useState

✓ Published0🌍 Public
Mmartfhill
Last edited Jan 6, 2022
Created on Jan 6, 2022
Forked from Mouse Follower

This example demonstrates a React component that fetches a CSV file from a GitHub gist using D3's `csv` function, stores the resulting data in React state via `useState`, and then displays the raw data as large text in the browser. The visualization shows the parsed CSV data rendered directly as a string, with the code initiating the fetch within the component body and updating the state asynchronously. It uses React 17, D3 v7, and ReactDOM to render the `<App />` component into the HTML root element.

AI-generated description

Making a smiley face with React and D3

MIT Licensed

Similar vizzes