Fork of “Sleep Hours vs Stress Level – Scatter Plot”
✓ Published1🌍 Public
YYuXIA_2025
Last edited Sep 11, 2025
Created on Sep 11, 2025
Forked from “Sleep Hours vs Stress Level – Scatter Plot”
This fork of “Sleep Hours vs Stress Level” plots sleep duration against self-reported stress from a Kaggle CSV, with circles colored by gender and a legend identifying the categories. The React app loads the data via `d3.csv`, then passes it to a reusable `viz()` function that renders an SVG scatter plot. `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.scaleOrdinal` with `schemeTableau10` handle scales, axes, and categorical colors, while a `d3.select` loop appends circles and title tooltips.
AI-generated descriptionMIT Licensed