Pie chart
✓ Published0🌍 Public
A pie chart displays the top 10 states by YTD sales, with each slice colored and paired with a legend showing the brand name and value. The chart uses `d3.pie` to compute angles and `d3.arc` to render SVG paths, with `d3.scaleOrdinal` assigning colors. Data loads from a CSV via the `csv` method, and the legend includes formatted values using `d3.format`. The SVG is sized 960×500, with the pie centered and legend positioned to the right.
AI-generated descriptionMIT Licensed