Activity6_Task2
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the proportion of films in each rating category from "below 5.0" to "above 8.5". The y-axis lists genres, while the x-axis represents the percentage of each rating level, with color-coded segments per category. Interactive tooltips, implemented with D3's `d3.axisBottom`, `d3.scaleOrdinal`, and `d3.stack`, display precise percentages on hover, with bars using `d3.select` and mouse events to trigger opacity changes and tooltip updates. The visualization uses SVG rendering within an HTML canvas.
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%.