Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
TTOKIHISA
Last edited Jan 8, 2022
Created on Jan 8, 2022
Forked from mouse_folow

This example demonstrates how to load and summarize a CSV dataset in a React application using D3, displaying the file size, row count, and column count as text. The visualization relies on React's `useState` hook to manage data asynchronously, fetching the remote dataset via `d3.csv` and formatting the summary with `d3.csvFormat`. Initially, the page shows “loading” until the data arrives. The output is rendered as SVG-less HTML text via ReactDOM, with styling set globally in the document structure. The data source is a Gist-hosted CSV of named colors.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes