Skip to main content
100%

sleep vs concenration

✓ Published0🌍 Public
Ssarikakannikanti@gmail.com
Last edited Apr 6, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This grouped bar chart compares sleep patterns against concentration difficulty levels, showing the number of students for each combination. The data comes from a CSV file on student grades and mental health, loaded via `d3.csv`. The visualization uses `d3.rollups` to aggregate counts by two categorical dimensions, then renders the nested groups with `d3.scaleBand` for both axes and `d3.scaleLinear` for the y-axis. Colors are assigned using `d3.scaleOrdinal` with `d3.schemeTableau10`. SVG rectangles display the bars, with hover tooltips showing exact counts for each sleep and concentration category.

AI-generated description
MIT Licensed

Similar vizzes