🌍 Public
Viewing a saved revision (read-only)
e7e48665857943dd9e35cd3358a5f0e3
Pie Chart Activity8_Task2
This pie chart visualizes the count of students from each major at UNT, displaying proportional slices with data labels and a corresponding legend. The visualization uses D3.js v5, specifically the `pie` and `arc` generators to compute and draw the chart, with `scaleOrdinal` assigning colors to each category. Student counts are sourced from a CSV file fetched via `d3.csv`, and the values are formatted using `d3.format`. The chart is rendered as SVG with appended `path` elements for slices and text elements for labels, while the legend is built through grouped SVG elements.
AI-generated descriptionA demonstration of Pie chart.