Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart Assignment 2

Public visualization

Pie Chart Assignment 2

0 stars1🌍 Public
LLikhithagade@my.unt.edu
Last edited Mar 27, 2025
Created on Mar 26, 2025
Forked from Hello VizHub

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

Comments

Sign in to join the discussion.

MIT Licensed