Fork of second
✓ Published1🌍 Public
This pie chart visualizes sales distribution across 43 product categories, with each slice sized proportionally to its sales value from a CSV file. The visualization uses D3.js v6 with the `d3.pie()` and `d3.arc()` generators to compute slice angles and paths, rendered as SVG elements styled with a Tableau10 color scale. Labels are positioned at arc centroids using `d3.arc().centroid()`, while a legend on the right maps colors to categories. Data from `sales_data.csv` is loaded asynchronously via `d3.csv()`.
AI-generated descriptionMIT Licensed