Skip to main content
100%

Pie Chart - Deeksha Kondam

✓ Published0🌍 Public
Ddeekshakondam@gmail.com
Last edited Apr 6, 2025
Created on Mar 27, 2025
Forked from Hello VizHub

This pie chart visualizes the distribution of students’ self-reported stress levels, bucketed into Low, Medium, and High categories. A dataset of student grades and mental health is loaded via `d3.csv` from a GitHub gist, and each numerical stress score is counted into its respective bucket. The chart uses `d3.pie()` to compute the arcs and `d3.arc()` with an inner radius of zero to render the slices as SVG paths. An animation, driven by `transition.attrTween` and `d3.interpolate`, expands the pie from zero angle on load, while a legend, color-coded via `d3.scaleOrdinal` with `d3.schemeSet2`, identifies each category.

AI-generated description
MIT Licensed

Similar vizzes