Skip to main content
100%

Pie Chart Activity8_Task2

✓ Published0🌍 Public
Ssrikkanth05
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

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 description

A demonstration of Pie chart.

MIT Licensed

Similar vizzes