Activity6_Task2
This stacked bar chart visualizes the percentage distribution of IMDb rating levels across six movie genres, showing how genre impacts ratings. Each horizontal bar represents a genre, segmented into five rating categories from “below 5.0” to “above 8.5,” with a total of 100%. Hovering over a segment displays a tooltip with the exact rounded percentage for that rating level. The chart uses d3.stack for data stacking, d3.scaleOrdinal with a custom color palette, d3.scaleLinear and d3.scaleBand for axes, and SVG rendering from a CSV data source.
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%.