Activity6_Task2
This stacked bar chart shows the percentage distribution of IMDb rating levels across six movie genres, revealing how genre influences audience ratings. Each bar represents a genre, segmented into five rating categories from below 5.0 to above 8.5. Using d3.stack() and d3.scaleOrdinal for coloring, the visualization renders as SVG. Interactive tooltips appear on mouseover via d3.select and event handlers, displaying the exact percentage for each rating segment within a genre. The data comes from a CSV file containing genre and rating proportion columns.
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%.