Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Visualization of data using React

Public visualization

Fork of Visualization of data using React

0 stars1🌍 Public
Aamulyakannam
Last edited Jun 23, 2022
Created on Jun 23, 2022

This example visualizes data from a remote CSV file as a pie chart, with each slice colored using the `hex` value from the dataset. It uses React hooks (`useState`, `useEffect`) to load the data asynchronously via `d3.csv`, then renders SVG paths computed with `d3.pie` and `d3.arc`. The page also displays file size, row, and column counts by reading the CSV text in the `index.html` script. The chart updates once the data arrives.

AI-generated description

creating a react app, data hangling

Comments

Sign in to join the discussion.

MIT Licensed