Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

sleep-vs-stress-gender-tooltips

Public visualization

Viewing a saved revision (read-only)

043f45bf049a4a1b91bfc8f7a2068746

sleep-vs-stress-gender-tooltips

0 stars2🌍 Public
Ccsabavath@wpi.edu
Last edited Sep 29, 2025
Created on Sep 29, 2025

A scatter plot displays sleep duration against stress level from a Kaggle sleep health dataset, with points colored by gender and a legend. D3.js v7 renders the SVG, applying linear scales, axes, gridlines, and per-gender dashed regression lines computed via least squares. Hovering a point triggers a custom tooltip showing person ID, gender, sleep, stress, and sleep disorder. React manages the component lifecycle, initializing the chart after asynchronously loading and parsing the CSV.

AI-generated description