🌍 Public
Viewing a saved revision (read-only)
c5af3124cc744eb7b0b2fa7515e90a33
ice7_task1
This example visualizes the distribution of student attendance levels as a pie chart, grouping students into three categories: high (≥85%), medium (70%-84%), and low (<70%). Each slice is colored correspondingly, with a legend displayed alongside the chart. The visualization loads data from a CSV file using `d3.csv`, processes it with JavaScript array methods, and renders the pie using `d3.pie` and `d3.arc` within an SVG. A legend is dynamically populated using D3 selections, and the chart employs a `d3.scaleOrdinal` for color mapping.
AI-generated description