🌍 Public
Viewing a saved revision (read-only)
ae0f25db339c4ca09d409794514cba99
Fork - Colors pie with React & D3
This example demonstrates a simple React component that loads a CSV dataset from a GitHub gist and displays a summary message about it. The App component uses the useState and useEffect hooks to fetch the data with d3.csv, then passes it to a helper function that formats the file size, row count, and column count using d3.csvFormat. While the page is loading, it shows "Loading.." in a large preformatted text element. The visualization integrates React 16.9 for UI state management with D3 v5 for data parsing and formatting.
AI-generated descriptionSmiley face implementation with React & D3.