Skip to main content
100%

T9& 10 Q1

✓ Published0🌍 Public
Aaashrithas2000@gmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Task 9 & 10

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
MIT Licensed

Similar vizzes