Skip to main content
100%

Making an Interactive Pie Chart

✓ Published1🌍 Public
BbeauMarko
Last edited Aug 27, 2020
Created on Aug 25, 2020
Forked from Making a Pie Chart

This interactive donut chart displays income distribution across Sales, Dividends, and Interest using a D3 pie layout and arc generator. Hovering over a slice reveals a tooltip showing the percentage of the total amount, calculated with d3.sum. The chart uses a color scale with ordinal colors, labels positioned via arc centroids, and SVG rendering. Data is loaded from a CSV file, and the tooltip fades in and out based on mouseover and mouseout events.

AI-generated description
MIT Licensed

Similar vizzes