Fork of Fork of Sleep Efficiency vs. Age
This scatterplot visualizes the relationship between age and sleep efficiency, with data points colored by smoking status. The chart reveals a linear trend until age 20, after which no clear correlation exists, answering the question of whether sleep efficiency correlates with age. Built with D3 v7, the visualization uses `scaleLinear` for axes, `schemeCategory10` for color encoding, and `axes.js` for labeled axis rendering. Data is fetched from a CSV and parsed via `csvParse`, then plotted with circles at 8-pixel radius with 0.6 opacity.
AI-generated descriptionThis is a viz on the sleep efficiency dataset. The question this viz aims to answer the question is sleep efficiency and age correlated? We can see that there is a linear relationship until about age 20, and then afterward, there is no relationship.