Average REM Sleep Duration vs. Age
This visualization shows how average REM sleep duration varies with age using data from a sleep efficiency dataset. The scatter plot displays age on the x-axis and average REM sleep percentage on the y-axis, with each point representing a distinct age group. The visualization uses D3.js v7 APIs including `scaleLinear`, `axisBottom`, `axisLeft`, and `flatRollup` to aggregate the raw CSV data into age-grouped averages. A dropdown menu lets viewers switch between different sleep metrics, though the default view focuses specifically on REM sleep patterns across the lifespan.
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 light sleep duration.
To do: add tool tip for hovering over data