Skip to main content
100%

Sleep Health and Lifestyle Dataset

✓ Published0🌍 Public
Ccsabavath@wpi.edu
Last edited Sep 11, 2025
Created on Sep 4, 2025
Forked from Loading Data

This visualization displays a raw preview of the Sleep Health and Lifestyle Dataset, showing all 400 records with their 13 attributes including sleep duration, stress levels, and sleep disorder classifications. The example uses d3.csvParse to load and parse the CSV data, converting numeric fields to numbers before displaying the JSON-formatted data in a pre element. The code demonstrates a state management pattern where data transitions from undefined to 'LOADING' to the final parsed array, with each state change triggering a re-render of the visualization.

AI-generated description

Dataset 3: Sleep Health and Lifestyle Dataset

Source:
Sleep Health and Lifestyle Dataset

This dataset contains 400 rows and 13 attributes, covering variables related to sleep patterns, lifestyle factors, and health indicators. It includes demographic details, physical activity, stress levels, BMI, blood pressure, and the presence of sleep disorders.
It’s ideal for analyzing the impact of lifestyle factors on sleep quality and identifying relationships between health metrics and sleep disorders.

Attributes and Types

  • Gender – Categorical, nominal
  • Age – Quantitative, ratio
  • Occupation – Categorical, nominal
  • Sleep Duration – Quantitative, ratio
  • Quality of Sleep – Quantitative, ordinal (scale)
  • Physical Activity Level – Quantitative, ratio
  • Stress Level – Quantitative, ordinal (scale)
  • BMI Category – Categorical, ordinal
  • Blood Pressure – Quantitative, ratio
  • Heart Rate – Quantitative, ratio
  • Daily Steps – Quantitative, ratio
  • Sleep Disorder – Categorical, nominal
MIT Licensed

Similar vizzes