T9& 10 Q1
✓ Published0🌍 Public
This pie chart visualizes shopping category data by state, showing the proportional value of each category. The chart uses D3 v7’s `pie` and `arc` generators to create slices, with a categorical color scale distinguishing sections. Labels display scaled values in thousands, and a legend lists states with corresponding colors and totals. The data is loaded from a GitHub-hosted CSV file using `d3.csv`, while `scaleOrdinal` and `format` handle color mapping and axis tick formatting. The visualization is centered in an SVG container with fixed dimensions, and the legend is positioned separately to the right.
AI-generated descriptionMIT Licensed