🌍 Public
Viewing a saved revision (read-only)
65096625a07e4ea9b98dc384ab613ac1
pie chart ice 7
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