Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
Aamanipeddolla@my.unt.edu
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from 5 Buddhas

A stacked horizontal bar chart, titled "Time Spent on Daily Activities," visualizes the proportional distribution of time across five categories for ten daily activities. Each bar represents an activity, with colored segments showing the percentage of time spent in categories like "less than 1 hour" to "more than 6 hours". The visualization uses D3 v7 with an SVG rendering approach, employing `d3.stack()` to generate the stacked data and `d3.scaleOrdinal` for color mapping. Interactive tooltips display exact percentages on hover, built with D3 event handlers and HTML div elements.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes