Question2
This stacked bar chart shows the percentage distribution of movie ratings across different genres, with each horizontal bar broken into colored segments representing rating levels from 'Less than 3' to 'More than 6'. The visualization uses d3.stack() to process the CSV data and d3.scaleBand() for the genre categories on the y-axis, with d3.scaleLinear() mapping percentages on the x-axis. Hovering over any segment triggers a tooltip displaying the exact percentage for that rating level within the genre, while the chart uses d3.axisBottom() and d3.axisLeft() for axes and a color ordinal scale to distinguish 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%.