Viewing a saved revision (read-only)
4b073c29d8d243ec9542c812515b8962
Sleep Health and Lifestyle Dataset
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 descriptionDataset 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