Skip to main content
100%

ICE7_PY_PieChart

✓ Published1🌍 Public
PPY09052021
Last edited Mar 28, 2022
Created on Mar 27, 2022
Forked from D3 Starter

This pie chart displays the percentage contribution of five individual in-class exercises (ICE-1 through ICE-5) to a final student score. The code uses D3 v4’s `d3.pie` and `d3.arc` to compute and render the SVG arcs, with colors assigned via `d3.scaleOrdinal` and `d3.schemeCategory10`. A legend is drawn using appended circles and text labels, while each slice is labeled with its corresponding ICE name. The data is hardcoded as an array of objects, totaling 100 percent.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes