🌍 Public
Viewing a saved revision (read-only)
e1e3c6b3f29c4832bda02d3f43739b55
First Project Prototype – Sleep & Stress Bar Chart
Ccsabavath@wpi.edu
Last edited Sep 23, 2025
Created on Sep 23, 2025
This scatter plot visualizes the relationship between sleep duration and stress level, with points colored by gender and dashed trend lines showing the per-group linear regression. It uses D3 v7 functions like `d3.scaleLinear`, `d3.axisBottom`, and `d3.scaleOrdinal` on an SVG canvas, loading survey data from a Kaggle CSV. A legend and hover tooltips reveal additional details, while the chart highlights how higher stress correlates with reduced sleep, particularly for females.
AI-generated description