Activity7_task2
This stacked bar chart shows the distribution of movie ratings across five genres, with each bar segment representing the percentage of films falling into one of five rating categories from below 5.0 to above 8.5. It highlights how genre influences ratings, for example showing Action films have a higher proportion of low ratings compared to Documentaries. Hovering over a segment reveals the exact percentage via a tooltip. The visualization uses D3.js (v7) with stacked data processing and maps data from a CSV file loaded using `d3.csv`, rendered as an SVG with a categorical color scale.
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%.