Activity6-Task2
This stacked bar chart shows the proportion of IMDb ratings within six movie genres, using percentages that sum to 1 for each genre. Hovering over a segment reveals the exact percentage for that rating band. The visualization uses D3 v7’s `d3.stack()` to build the stacked layout and `d3.scaleOrdinal` for color mapping, rendering to SVG. Tooltips are implemented with D3’s mouse event handlers, and data comes from a CSV file containing genre-level rating distributions.
AI-generated descriptionThe impact of genre on movie ratings
This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.