🌍 Public
Viewing a saved revision (read-only)
317dbdfdbc2e4e3597938ba29521c92f
T9& 10 Q1
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 description