Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

First Project Prototype – Sleep & Stress Bar Chart

Public visualization

Viewing a saved revision (read-only)

4fcd8a64fe0b412d8532bb52e6bf03bd

First Project Prototype – Sleep & Stress Bar Chart

0 stars0🌍 Public
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