Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of project-momentum-Hover

Public visualization

Fork of project-momentum-Hover

0 stars1🌍 Public
Ccsabavath@wpi.edu
Last edited Oct 29, 2025
Created on Oct 28, 2025

This visualization shows the percentage of people with different sleep disorders across three stress-level bins, filtered by gender via a dropdown. The chart uses stacked bar segments colored by disorder category, with a legend that supports highlighting and filtering on hover. Built with D3 v7, it uses `d3.stack`, `d3.scaleOrdinal`, and `d3.scaleBand` with transitions on rect joins to animate updates. Data comes from a CSV of sleep health records, summarized into percentages per stress bin.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed