Interactive Pie Chart for Violence Data
✓ Published0🌍 Public
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 descriptionMIT Licensed