Activity6_Task2_Question2
✓ Published0🌍 Public
A stacked bar chart shows the proportional distribution of movie ratings across six genres, with each bar divided into five rating score ranges from below 5.0 to above 8.5. The chart uses d3.stack with stackOffsetExpand to normalize each genre bar to 100%, and displays percentage labels within segments wider than 40 pixels. D3 v7 renders SVG rectangles and axes, with an ordinal color scale and tooltips via appended title elements. Data is hardcoded as an array of objects in the script.
AI-generated descriptionMIT Licensed