Average Sleep Efficency per Gender
✓ Published1🌍 Public
A bar chart shows the average sleep efficiency percentage for male and female participants, with two labeled bars using the Dark2 color scheme. The visualization loads CSV data from a GitHub gist, calculates mean sleep efficiency per gender in JavaScript, and renders the result using D3 v7’s scaleBand and scaleLinear, along with axis components built from d3.axisLeft and d3.axisBottom. The chart updates responsively to the window size and includes labeled axes for gender and average sleep efficiency.
AI-generated descriptionBar chart as part of project momentum for the sleep efficiency dataset. Adapted from: https://d3-graph-gallery.com/graph/barplot_button_data_simple.html
Color scheme: https://observablehq.com/@d3/color-schemes
MIT Licensed