🌍 Public
Viewing a saved revision (read-only)
773b6a7c60624a949b754a3fcb2d3631
First Project Prototype – Sleep & Stress Bar Chart
Ccsabavath@wpi.edu
Last edited Sep 25, 2025
Created on Sep 23, 2025
This grouped bar chart shows how average sleep duration varies across three stress-level bins (low, medium, high) for females and males, revealing that higher stress corresponds to fewer sleep hours. Built with D3 v7 and React, the visualization loads CSV data via `d3.csv`, aggregates with `d3.rollups` and `d3.mean`, and renders SVG bars through `d3.scaleBand` and `d3.scaleLinear`. A Tableau10 color scale encodes gender, while value labels and a small legend clarify the comparison.
AI-generated description