activity7_question2
This stacked bar chart shows the percentage distribution of IMDb movie ratings across different genres, aiming to reveal the impact of genre on rating levels. Each genre displays stacked segments representing five rating categories, with hover pop-ups showing precise percentages per genre. The visualization uses d3.stack() to create stacked data, d3.area() with a basis curve for smooth rendering, and d3.scaleBand and d3.scaleLinear for axes. Data is loaded via d3.csv from a GitHub repository, with an ordinal color scale and legend distinguishing rating categories.
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%.