Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

“Sleep Hours vs Stress Level – Scatter Plot”

Public visualization

Viewing a saved revision (read-only)

ab22ae0e0486475191dbb3478d376e9f

“Sleep Hours vs Stress Level – Scatter Plot”

0 stars3🌍 Public
Ccsabavath@wpi.edu
Last edited Sep 11, 2025
Created on Sep 9, 2025

This scatter plot visualizes the relationship between sleep duration and stress levels from the Sleep Health and Lifestyle dataset. Each circle represents an individual, positioned by their nightly sleep hours and stress rating, with color encoding gender and a legend explaining the categories. Built with React, the D3.js code uses `scaleLinear` and `scaleOrdinal` for positioning and color, while `axisBottom` and `axisLeft` create the axes. Tooltips reveal additional details per point, and the plot is rendered as an SVG with bold labels for readability.

AI-generated description