Activity6_T2
✓ Published1🌍 Public
A stacked bar chart shows the percentage distribution of five rating brackets within each movie genre, using data from a CSV file. Hovering over a segment reveals a tooltip with the exact percentage for that genre and rating level. The chart uses D3 v7's `d3.stack()` and `d3.scaleOrdinal()` to construct the bars, with SVG rendering and mouse event handlers for interactivity.
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%.
MIT Licensed