ACTIVITY_6_T2_Q2
✓ Published0🌍 Public
This stacked bar chart shows the distribution of movie ratings across six genres, using proportional segments to compare the share of films falling into five rating ranges from “Below 5.0” to “Above 8.5.” Each genre bar is divided into colored, percentage-labeled segments, with a tooltip revealing exact values on hover. The visualization uses D3.js v7 with SVG rendering, applying the `d3.stack()` function with a `d3.stackOffsetExpand` offset to normalize all bars to full width. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, while colors come from `d3.scaleOrdinal`.
AI-generated descriptionMIT Licensed