Fork of Visualization of data using React
✓ Published0🌍 Public
This example shows a pie chart with one wedge per data row, colored by a hex value from the CSV and rendered as an SVG. It loads a sample sales record from a GitHub gist using `d3.csv`, then passes the parsed data to React state via `useState` and `useEffect`. The chart uses `d3.pie()` and `d3.arc()` with an outer radius equal to the SVG width, and maps each pie slice to a `<path>` element. The code also includes an unused `message` utility that reports list length and column count.
AI-generated descriptioncreating a react app, data hangling
MIT Licensed