Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2-Pie chart

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed