Average Sleep Efficiency and Duration vs. Age
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 descriptionThis 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