Skip to main content
100%

loading data with react and d3

✓ Published1🌍 Public
Sseanowh
Last edited Aug 29, 2021
Created on Aug 29, 2021
Forked from mouse follower

This example demonstrates how to load and display CSV data in a React application using D3. It shows a simple text report of the dataset’s size, including the number of rows, columns, and file size in kilobytes. The code uses React hooks (`useState`, `useEffect`) to fetch data via D3’s `csv` function, then renders the result through a custom `message` function that calculates the statistics. The visualization renders as SVG-free plain text within a `<pre>` element, sourced from a GitHub gist containing named CSS colors.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes