Activity6_Task 2 Tutorial
A stacked bar chart built with D3 v7 shows the percentage distribution of IMDb rating levels across six movie genres, demonstrating how genre influences ratings. Each horizontal bar represents a genre, segmented into five rating categories from below 5.0 to above 8.5. Hovering over any segment displays a tooltip with the exact percentage. The visualization uses `d3.stack()`, `d3.scaleOrdinal()`, and `d3.scaleBand()`, rendering bars as SVG rectangles with axes and labels, sourced from an embedded CSV dataset.
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%.