Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of two

Public visualization

Viewing a saved revision (read-only)

e0d76eef6e6b4aecb59eb1d9f0e48696

Fork of two

0 stars0🌍 Public
Mmsahithipatel@gmail.com
Last edited Oct 28, 2025
Created on Oct 28, 2025
Forked from two

This pie chart shows the proportion of total sales by product category, with labels on each slice and a legend to the side. It uses D3 v7’s `d3.rollups` to aggregate sales per category and `d3.pie` to generate arcs, while `d3.scaleOrdinal` assigns colors. Each slice’s centroid is computed with `d3.arc.centroid` for label placement, and the SVG is rendered from CSV data.

AI-generated description