Activity6_Task2
This stacked bar chart visualizes the impact of movie genre on IMDb ratings by showing the percentage distribution of five rating categories for each genre. The data is loaded from a CSV file and processed using D3 v7’s stack function, with a linear scale for the percentage axis and a band scale for genres. Hovering over a bar reveals a tooltip with the exact percentage for that rating segment. The visualization uses SVG rendering, with a Safari-style color scale for the rating bands.
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%.