Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7.1 Question 1

Public visualization

Viewing a saved revision (read-only)

8de27521b7d54109b8893159e5c75daf

Activity 7.1 Question 1

0 stars0🌍 Public
MMandadi Nishita
Last edited Nov 2, 2024
Created on Nov 2, 2024
Forked from Question1

This pie chart visualizes product sales data, displaying the proportional share of each product category as a colored slice with corresponding legend labels and percentage values. The chart loads CSV data from a GitHub gist via `d3.csv` and renders it using D3 v5’s `pie` and `arc` generators, with `scaleOrdinal` assigning category colors. Legends are appended as SVG groups, showing category names and computed percentages, while the total sales value is calculated by summing the numeric `Value` field from the dataset.

AI-generated description