Skip to main content
100%

pie chart ice 7

✓ Published0🌍 Public
UUday Kiran
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Pie chart

This pie chart visualizes website traffic source distribution using a React component with D3.js v5. It loads CSV data from a GitHub gist and renders slices with `d3.pie` and `d3.arc`, colored by `d3.scaleOrdinal` with `schemeCategory10`. Hovering a slice displays a tooltip via D3 selection showing the source, visitor count, and percentage. Labels are positioned using arc centroids, with a legend omitted. The chart updates reactively through React’s `useState` and `useEffect` hooks after asynchronous data loading.

AI-generated description
MIT Licensed

Similar vizzes