Skip to main content
100%

Activity 8_task2

✓ Published0🌍 Public
Mmandadi1999
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from Pie Chart

This pie chart shows the count of students from each major at UNT, with percentage labels displayed inside each slice and a legend identifying the major names alongside their student counts. The visualization uses D3 v5’s `pie` and `arc` functions to generate the chart, with `scaleOrdinal` assigning colors from a hardcoded array. Data is loaded asynchronously from a CSV via `d3.csv`, and the SVG rendering positions the pie at the center with a separate legend group. The chart also formats numeric labels using `d3.format`.

AI-generated description

A demonstration of Pie chart.

MIT Licensed

Similar vizzes