Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE7_PY_PieChart

Public visualization

Viewing a saved revision (read-only)

93778ec78b364d98ac4d2567921591a2

ICE7_PY_PieChart

0 stars1🌍 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.