Activity6_Q2
This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar segmented into five rating ranges from below 5.0 to above 8.5. The horizontal bars display the proportional share of each rating category within a genre, summing to 100%. The visualization uses d3.stack() to compute the stacked segments, d3.scaleOrdinal with a categorical color palette, and d3.scaleBand for the genre axis. Hovering over any segment triggers a tooltip showing the exact percentage, formatted with d3.format, for that rating range within the selected genre.
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%.