Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Ppardha1411
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This pie chart displays the number of students per major at UNT, with each slice labeled by its count in thousands and a corresponding legend listing majors and values. The visualization uses D3 v5’s `pie` and `arc` generators to compute slice angles and paths, while `scaleOrdinal` maps student counts to a fixed array of colors. Data is loaded asynchronously via `d3.csv` from a GitHub Gist, and the SVG rendering includes centroids for labels and a legend built with appended `rect` and `text` elements.

AI-generated description

A demonstration of Pie chart.

MIT Licensed

Similar vizzes