Making an Interactive Pie Chart
✓ Published1🌍 Public
This interactive donut chart displays income distribution across Sales, Dividends, and Interest using a D3 pie layout and arc generator. Hovering over a slice reveals a tooltip showing the percentage of the total amount, calculated with d3.sum. The chart uses a color scale with ordinal colors, labels positioned via arc centroids, and SVG rendering. Data is loaded from a CSV file, and the tooltip fades in and out based on mouseover and mouseout events.
AI-generated descriptionMIT Licensed