Skip to main content
100%

Loading Data with React and D3

✓ Published0🌍 Public
BBrandon Williams
Last edited Apr 26, 2022
Created on Apr 25, 2022

This example demonstrates loading a CSV dataset into a React application and displaying a concise summary of its contents. The visualization presents a text-based report showing the data file size in kilobytes, the number of rows, and the number of columns. The application fetches the CSS named colors dataset from a GitHub gist using D3’s `csv` function, stores the result in React state via `useState`, and renders the output as SVG text within a `<pre>` element. The `message` function computes the file size using `d3.csvFormat().length` to calculate kilobytes.

AI-generated description

Program that loads some data and does stuff with react and d3

MIT Licensed

Similar vizzes