Skip to main content
100%

Activity 7.1 Question 1

✓ Published0🌍 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
MIT Licensed

Similar vizzes