Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

project-momentum-color

Public visualization

Viewing a saved revision (read-only)

9825de8a0fb7429d91d5e0ffe20fa8b5

project-momentum-color

0 stars1๐ŸŒ Public
Ccsabavath@wpi.edu
Last edited Oct 21, 2025
Created on Oct 20, 2025

This interactive 100% stacked bar chart visualizes the distribution of sleep disorders (None, Insomnia, Sleep Apnea) across binned stress levels for a synthetic "Sleep Health & Lifestyle" dataset, with a gender filter and clickable legend. Built with D3 v7 and React, the visualization computes proportional segments per stress bin, using an ordinal color scale and animated transitions via `transition().duration()` to update bars when the gender select changes. Hovering a segment reveals a tooltip with exact percentages and category counts, while the legend filters which disorder categories are displayed.

AI-generated description