Skip to main content
100%

Fork of Making an Interactive Pie Chart11

✓ Published0🌍 Public
66mandati6
Last edited Mar 24, 2021
Created on Mar 24, 2021

This donut chart displays the relative proportions of three income sources—Sales, Dividends, and Interest—loaded from a CSV file. Each slice is labeled with its category name and colored using a custom ordinal scale. The visualization uses D3 v5’s `pie` and `arc` generators to compute slice geometry and `scaleOrdinal` for coloring. Hovering over a slice triggers an interactive tooltip that calculates and displays the percentage of the total amount represented by that slice, using `d3.sum` for aggregation and event listeners for mouse interactions.

AI-generated description
MIT Licensed

Similar vizzes