Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making an Interactive Pie Chart11

Public visualization

Fork of Making an Interactive Pie Chart11

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed