🌍 Public
Viewing a saved revision (read-only)
282e17b5e8d34d90b346a83c0e8502f5
Interactive Pie Chart for Violence Data
This interactive pie chart visualizes the distribution of income categories—Sales, Dividends, and Interest—using data from a local CSV file. Rendered as a donut chart with SVG, it employs D3 v5’s `pie` and `arc` functions to compute slice geometries and a `scaleOrdinal` for color encoding. Hovering over a slice triggers a tooltip that calculates and displays the percentage share of the total, using D3’s `sum` and event handling. The visualization uses a custom style sheet for hover effects and tooltip styling.
AI-generated description