Activity-6 task-2
A stacked bar chart displays the percentage distribution of five IMDb rating categories across six movie genres, highlighting how genre influences audience scores. The chart uses horizontal bars where each genre’s segments represent rating proportions, with colors mapped via a D3 ordinal scale. Interactive tooltips reveal precise percentages on hover. The visualization is rendered as SVG using D3 v7, with data loaded from a CSV file and axes, legends, and labels custom-drawn through D3’s scale and axis APIs.
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%.