pie chart for monthly sales
✓ Published1🌍 Public
This example shows monthly sales data for six product categories across six months using a series of pie charts, each labeled with its corresponding month. It displays proportional slices for electronics, clothing, groceries, furniture, toys, and books, with a legend for the categories. Each pie chart is rendered as an SVG using D3.js v6, with the `d3.pie()` layout generating the arc angles and `d3.arc()` creating the paths. The code uses `d3.scaleOrdinal` with `d3.schemeCategory10` for colors and positions the charts vertically with month labels below each slice.
AI-generated descriptionMIT Licensed