Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sleep Health and Lifestyle Dataset

Public visualization

Viewing a saved revision (read-only)

738d1c6705e54de2ae2a5a3ae7174be9

Sleep Health and Lifestyle Dataset

0 stars0🌍 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