Skip to main content
100%

assignment

✓ Published0🌍 Public
HHarshithaAru06
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from Fork of Pie Chart

This pie chart visualizes the pass/fail distribution of students from a performance dataset. The D3.js code (using `d3.pie`, `d3.arc`, and `d3.rollup`) aggregates the `pass_fail` column into slice counts, with each slice labeled as a category and its percentage. A right-side legend, built with `d3.select` and dynamic HTML joins, lists each category and its raw value. The SVG rendering uses ordinal colors from `d3.schemeTableau10` and includes slice borders and white text strokes for readability.

AI-generated description
MIT Licensed

Similar vizzes