🌍 Public
Viewing a saved revision (read-only)
4ea079fc9173460e9a2c5c0db1fe5eb8
Pie Chart Assignment 2
This pie chart shows the distribution of wholesale customer spending across six product categories: Fresh, Milk, Grocery, Frozen, Detergents_Paper, and Delicassen. The visualization displays each category’s total spending as a proportional slice of the pie, with a legend showing exact values and percentages. Using D3.js v7, the code employs `d3.pie` and `d3.arc` to generate the SVG paths, `d3.scaleOrdinal` with `d3.schemeTableau10` for coloring, and `d3.tsv` to load and parse the wholesale customer dataset from a raw GitHub gist.
AI-generated description