Skip to main content
100%

Assignment 7 part 2

✓ Published1🌍 Public
AAriful Hasan
Last edited Mar 29, 2026
Created on Mar 29, 2026
Forked from Assignment 7

This pie chart displays the distribution of students across two groups, with each slice sized by student count and labeled with numeric totals. The visualization uses D3.js v7 to load student_scores.csv, process the data with d3.rollups and d3.pie, and render SVG paths via the d3.arc generator. A categorical color scale distinguishes the groups, while a legend identifies slice colors, and labels are positioned using arc.centroid. The result provides an immediate comparison of group sizes from the dataset.

AI-generated description

Pie Chart - Assignment 7

This project shows a pie chart using D3.js.

Dataset

File used: student_scores.csv

Visualization

This pie chart shows the number of students in each group.

Explanation

Each slice represents a group. The size of each slice shows how many students are in that group.

Author

Ariful Hasan

MIT Licensed

Similar vizzes