Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork 11

Public visualization

Fork of Fork 11

0 stars0🌍 Public
Llakshmisurekhamaddukuri@my.unt.edu
Last edited Apr 10, 2025
Created on Apr 10, 2025
Forked from Fork 11

This bar chart visualizes the relationship between daily water consumption and average sleep quality, with bars sorted by sleep quality in ascending order. The visualization uses D3.js v7 APIs including `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisBottom` to render the SVG chart. Data is loaded via `d3.tsv` from a remote CSV file, then processed with `d3.rollups` to group and average sleep quality by water consumption category. Interactive tooltips appear on hover, displaying the specific water consumption level and corresponding sleep quality score.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed