Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making an Interactive Pie Chart

Public visualization

Fork of Making an Interactive Pie Chart

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

Comments

Sign in to join the discussion.

MIT Licensed