Skip to main content
100%

pie_sales

✓ Published0🌍 Public
PP Manisha
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from Fork of Pie Chart

This pie chart visualizes product sales from a CSV file, displaying each product’s share as a colored slice with labels positioned at each slice’s centroid. The chart uses d3.pie() to compute arc angles and d3.arc() to render the SVG paths, with a d3.scaleOrdinal and d3.schemeCategory10 providing color encoding. A legend below the chart lists each product and its corresponding sales value, generated from the same loaded data. The visualization is built with D3 v7 and rendered as inline SVG within an HTML container.

AI-generated description
MIT Licensed

Similar vizzes