Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork - Colors pie with React & D3

Public visualization

Viewing a saved revision (read-only)

4408e47fd5c34770847c62f057d98df9

Fork - Colors pie with React & D3

0 stars0🌍 Public
DDeepak Tomson
Last edited Jul 30, 2021
Created on Jul 30, 2021

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 description

Smiley face implementation with React & D3.