ice07-pie chart
✓ Published1🌍 Public
This pie chart shows the distribution of retail records across product categories, with each slice labeled and a legend on the right. The visualization uses D3 v7’s `d3.pie` and `d3.arc` generators to compute and draw the slices, while `d3.rollup` aggregates the CSV data by category. A custom ordinal color scale assigns distinct colors to each category. The SVG rendering includes white labels positioned at each arc’s centroid, and the data is loaded from an external CSV file via `d3.csv`.
AI-generated descriptionMIT Licensed