Loading data with React and D3
✓ Published2🌍 Public
This example demonstrates a minimal React application that loads and summarizes a CSV dataset from a GitHub gist using D3’s `csv` method. It shows how to integrate React hooks like `useEffect` and `useState` with asynchronous D3 data loading. The app displays dataset statistics—including size in kilobytes, row count, and column count—via a custom local ES6 module called `getMessage`. React renders the result, while D3 is imported directly from the `"d3"` package. The page also loads React, ReactDOM, and D3 from CDN links in the HTML.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed