Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

MK Pie Chart

Public visualization

Viewing a saved revision (read-only)

068ea279f71f4c9b8022d4d47c2c5631

MK Pie Chart

0 stars1🌍 Public
MManeesh Kumar
Last edited Oct 27, 2025
Created on Oct 27, 2025

A dark-themed donut chart displays total sales by product category across 20 stores, with slices labeled by category name and percentage. Data from a CSV file is aggregated using `d3.rollups` and rendered with the reusable `pieChart()` function, which leverages `d3.pie` and `d3.arc` for the layout and `d3.scaleOrdinal` with `schemeTableau10` for coloring. Interactive tooltips appear on hover using `d3.select` and mouse events, while leader lines and a legend clarify slice values.

AI-generated description