Question 4
This example visualizes the distribution of IMDb movie ratings across six genres using a stacked bar chart, where each bar segment represents the proportion of ratings falling into five score ranges. The chart highlights how genres like Documentary skew toward higher ratings, while Action has a larger share of low ratings. Hovering over a bar segment reveals the exact percentage for that rating category within the genre, with all proportions summing to 1. The visualization is implemented with D3 v7, using SVG rendering, scales, and mouse event handlers for tooltip display.
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%.