Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making an Interactive Pie Chart

Public visualization

Viewing a saved revision (read-only)

6f7165927d2d42c4a0c1ed3d3d5e8d0f

Fork of Making an Interactive Pie Chart

0 stars1🌍 Public
NNarayana Reddy
Last edited Mar 24, 2021
Created on Mar 24, 2021

This donut chart displays the proportional breakdown of income sources, with three colored segments labeled Sales, Dividends, and Interest. Hovering over a slice reveals a tooltip showing its percentage of the total amount. The visualization uses D3 v5 APIs including `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.sum` to calculate and render the arcs. Data is loaded from a CSV file, and the SVG elements are manipulated directly to create the chart and interactive tooltip.

AI-generated description