Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making an Interactive Pie Chart

Public visualization

Making an Interactive Pie Chart

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

Comments

Sign in to join the discussion.

MIT Licensed