Skip to main content
100%

Fork of Making an Interactive Pie Chart

✓ Published0🌍 Public
WWangJiaCheng1999
Last edited Jun 5, 2021
Created on Jun 5, 2021

This interactive donut chart displays the proportion of income from Sales, Dividends, and Interest, with each slice labeled by category and showing a percentage on hover. Built with D3 v5, it uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate SVG paths, while tooltips are implemented via mouse events and a styled HTML div. The chart reads its data from a CSV file, computing percentages from the parsed values, and features rounded slice corners and a responsive hover opacity effect.

AI-generated description
MIT Licensed

Similar vizzes