Skip to main content
100%

Average Sleep Efficiency and Duration vs. Age

✓ Published2🌍 Public
MMartha Cash
Last edited Apr 11, 2023
Created on Apr 10, 2023

This visualization displays the average sleep efficiency and duration across different ages, sourced from a sleep efficiency dataset. Users can select different sleep metrics—such as REM sleep percentage or deep sleep duration—from dropdown menus to view their relationship with age. The scatter plot uses circles colored by gender, rendered with D3.js (v7), leveraging `scaleLinear`, `scaleOrdinal`, and `flatRollup` to aggregate and plot the data. The chart includes labeled axes and a dropdown for metric selection.

AI-generated description

This is a viz on the sleep efficiency dataset. The question this viz aims to answer the question how does age correlate with certain feautres of the dataset. This graph looks at age vs average sleep duration.

To do: add tool tip for hovering over data

MIT Licensed

Similar vizzes