Skip to main content
100%

Activity_8-Task_2

✓ Published0🌍 Public
Ssaipaidipalli
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Pie Chart

This visualization displays the count of students from each major at UNT using a pie chart with an interactive legend. The data is loaded from a remote CSV file using D3 v5’s `csv` function, and the pie layout (`d3.pie`) computes arc segments from the student counts. Each slice is rendered as an SVG path with `d3.arc`, colored via `d3.scaleOrdinal`, and labeled with formatted values. A legend to the right lists majors with their corresponding colors and student totals.

AI-generated description

A demonstration of Pie chart.

MIT Licensed

Similar vizzes