Activity6_question2
This stacked bar chart displays the percentage distribution of movie ratings across five genres, with each bar segmented into five rating categories from below 5.0 to above 8.5. The chart reveals how genre influences rating patterns, such as Documentaries having the highest proportion of high ratings, while Action films show the largest share of low ratings. Hovering over a segment displays the exact percentage via a tooltip. The visualization uses d3.v7 with SVG rendering, employing `d3.stack`, `d3.scaleOrdinal`, and `d3.scaleLinear` to construct the stacked bars from the CSV data.
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%.