Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of sleep pattern vs depression

Public visualization

Fork of sleep pattern vs depression

0 stars0🌍 Public
Ssarikakannikanti@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025

This pie chart visualizes the distribution of depression scores across sleep-pattern categories, showing how total depression values are partitioned into groups defined by hours of sleep. The visualization uses D3 v7’s `pie`, `arc`, `scaleOrdinal`, and `rollup` functions to aggregate and encode the data, with interactive hover tooltips and a static legend displaying category percentages. The underlying data comes from a CSV file of student grades and mental health, loaded via `d3.csv`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed