Skip to main content
100%

sleep-vs-stress-gender-tooltips

✓ Published2🌍 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
MIT Licensed

Similar vizzes