Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2-Pie chart

Public visualization

Viewing a saved revision (read-only)

4a17209e35324cecbd9f3aa3e15a6ba3

Assignment2-Pie chart

0 stars0🌍 Public
Vvullihanumantharao@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This pie chart displays the distribution of student counts across different majors at UNT, with each slice labeled with its numeric value and accompanied by a color-coded legend. The visualization uses D3 v5 APIs including `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to compute arc geometry and assign categorical colors, while rendering SVG paths and text elements. Data is fetched as CSV from a GitHub gist, and the chart positions its pie at (250,250) with a legend offset to the right, formatting values in thousands (e.g., "5K").

AI-generated description